kubevela.github.io/docs/end-user/components/cloud-services/terraform/alibaba-ack.md

4.1 KiB

title
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

Name Description Type Required Default
cpu_core_count CPU core count is used to fetch instance types. number false
cpu_policy kubelet cpu policy. Valid values: 'none','static'. Default to 'none'. string false
enable_ssh Enable login to the node through SSH. bool false
install_cloud_monitor Install cloud monitor agent on ECS. bool false
k8s_name_prefix The name prefix used to create several kubernetes clusters. Default to variable example_name string false
k8s_pod_cidr The kubernetes pod cidr block. It cannot be equals to vpc's or vswitch's and cannot be in them. string false
k8s_service_cidr The kubernetes service cidr block. It cannot be equals to vpc's or vswitch's or pod's and cannot be in them. string false
k8s_version The version of the kubernetes version. Valid values: '1.16.6-aliyun.1','1.14.8-aliyun.1'. Default to '1.16.6-aliyun.1'. string false
k8s_worker_number The number of worker nodes in kubernetes cluster. number false
master_instance_types The ecs instance types used to launch master nodes. list(any) false
memory_size Memory size used to fetch instance types. number false
new_nat_gateway Whether to create a new nat gateway. In this template, a new nat gateway will create a nat gateway, eip and server snat entries. bool false
node_cidr_mask The node cidr block to specific how many pods can run on single node. Valid values: [24-28]. number false
number_format The number format used to output. string false
password The password of ECS instance. string false
proxy_mode Proxy mode is option of kube-proxy. Valid values: 'ipvs','iptables'. Default to 'iptables'. string false
vpc_cidr The cidr block used to launch a new vpc when 'vpc_id' is not specified. string false
vpc_name The vpc name used to create a new vpc when 'vpc_id' is not specified. Default to variable example_name string false
vswitch_cidrs List of cidr blocks used to create several new vswitches when 'vswitch_ids' is not specified. list(any) false
vswitch_ids List of existing vswitch id. list(any) false
vswitch_name_prefix The vswitch name prefix used to create several new vswitches. Default to variable 'example_name'. string false
worker_instance_types The ecs instance types used to launch worker nodes. list(any) false
writeConnectionSecretToRef The secret which the cloud resource connection will be written to writeConnectionSecretToRef false
zone_id Availability Zone ID string false

writeConnectionSecretToRef

Name Description Type Required Default
name The secret name which the cloud resource connection will be written to string true
namespace The secret namespace which the cloud resource connection will be written to string false

Outputs

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

Name Description
API_SERVER_INTERNET The internet access of the kubernetes api server.
CLIENT_CERT The client certificate of the kubernetes cluster.
CLIENT_KEY The client key of the kubernetes cluster.
CLUSTER_CA_CERT The CA certificate of the kubernetes cluster.
CLUSTER_ID The ID of the cluster
KUBECONFIG The KubeConfig string of the kubernetes cluster.
NAME The name of the kubernetes cluster.
RESOURCE_IDENTIFIER The identifier of the resource