Skip to main content
Version: v1.3

Alibaba Cloud ACK

Description

Terraform configuration for Alibaba Cloud ACK cluster

Samples

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

Specification

Properties

NameDescriptionTypeRequiredDefault
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 towriteConnectionSecretToReffalse
zone_idAvailability Zone IDstringfalse

writeConnectionSecretToRef

NameDescriptionTypeRequiredDefault
nameThe secret name which the cloud resource connection will be written tostringtrue
namespaceThe secret namespace which the cloud resource connection will be written tostringfalse

Outputs

If writeConnectionSecretToRef is set, a secret will be generated with these keys as below:

NameDescription
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