Skip to main content
版本:v1.4

阿里云 ACK

描述

用于部署阿里云 ACK 集群的组件说明。

示例

apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: ack-cloud-source
spec:
components:
- name: ack-cluster
type: alibaba-ack
properties:
writeConnectionSecretToRef:
name: ack-conn
namespace: vela-system

参数说明

名称描述类型是否必须默认值
cpu_core_countCPU core count is used to fetch instance types。numberfalse
cpu_policykubelet cpu policy. Valid values: 'none','static'. Default to 'none'。stringfalse
enable_sshEnable login to the node through SSH。boolfalse
install_cloud_monitorInstall cloud monitor agent on ECS。boolfalse
k8s_name_prefixThe name prefix used to create several kubernetes clusters. Default to variable example_namestringfalse
k8s_pod_cidrThe kubernetes pod cidr block. It cannot be equals to vpc's or vswitch's and cannot be in them。stringfalse
k8s_service_cidrThe kubernetes service cidr block. It cannot be equals to vpc's or vswitch's or pod's and cannot be in them。stringfalse
k8s_versionThe version of the kubernetes version. Valid values: '1.16.6-aliyun.1','1.14.8-aliyun.1'. Default to '1.16.6-aliyun.1'。stringfalse
k8s_worker_numberThe number of worker nodes in kubernetes cluster。numberfalse
master_instance_typesThe ecs instance types used to launch master nodes。list(any)false
memory_sizeMemory size used to fetch instance types。numberfalse
new_nat_gatewayWhether to create a new nat gateway. In this template, a new nat gateway will create a nat gateway, eip and server snat entries。boolfalse
node_cidr_maskThe node cidr block to specific how many pods can run on single node. Valid values: [24-28]numberfalse
number_formatThe number format used to output。stringfalse
passwordThe password of ECS instance。stringfalse
proxy_modeProxy mode is option of kube-proxy. Valid values: 'ipvs','iptables'. Default to 'iptables'。stringfalse
vpc_cidrThe cidr block used to launch a new vpc when 'vpc_id' is not specified。stringfalse
vpc_nameThe vpc name used to create a new vpc when 'vpc_id' is not specified. Default to variable example_namestringfalse
vswitch_cidrsList of cidr blocks used to create several new vswitches when 'vswitch_ids' is not specified。list(any)false
vswitch_idsList of existing vswitch id。list(any)false
vswitch_name_prefixThe vswitch name prefix used to create several new vswitches. Default to variable 'example_name'。stringfalse
worker_instance_typesThe ecs instance types used to launch worker nodes。list(any)false
writeConnectionSecretToRefThe secret which the cloud resource connection will be written to。writeConnectionSecretToReffalse
zone_idAvailability Zone ID。stringfalse

writeConnectionSecretToRef

名称描述类型是否必须默认值
nameThe secret name which the cloud resource connection will be written to。stringtrue
namespaceThe secret namespace which the cloud resource connection will be written to。stringfalse

输出

如果设置了 writeConnectionSecretToRef,一个 Kubernetes Secret 将会被创建,并且,它的数据里有这些键(key):

名称描述
API_SERVER_INTERNETThe internet access of the kubernetes api server.
CLIENT_CERTThe client certificate of the kubernetes cluster.
CLIENT_KEYThe client key of the kubernetes cluster.
CLUSTER_CA_CERTThe CA certificate of the kubernetes cluster.
CLUSTER_IDThe ID of the cluster
KUBECONFIGThe KubeConfig string of the kubernetes cluster.
NAMEThe name of the kubernetes cluster.
RESOURCE_IDENTIFIERThe identifier of the resource