sigs.k8s.io/cluster-api-provider-aws@v1.5.5/templates/cluster-template.yaml (about) 1 --- 2 apiVersion: cluster.x-k8s.io/v1beta1 3 kind: Cluster 4 metadata: 5 name: "${CLUSTER_NAME}" 6 spec: 7 clusterNetwork: 8 pods: 9 cidrBlocks: ["192.168.0.0/16"] 10 infrastructureRef: 11 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 12 kind: AWSCluster 13 name: "${CLUSTER_NAME}" 14 controlPlaneRef: 15 kind: KubeadmControlPlane 16 apiVersion: controlplane.cluster.x-k8s.io/v1beta1 17 name: "${CLUSTER_NAME}-control-plane" 18 --- 19 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 20 kind: AWSCluster 21 metadata: 22 name: "${CLUSTER_NAME}" 23 spec: 24 region: "${AWS_REGION}" 25 sshKeyName: "${AWS_SSH_KEY_NAME}" 26 --- 27 kind: KubeadmControlPlane 28 apiVersion: controlplane.cluster.x-k8s.io/v1beta1 29 metadata: 30 name: "${CLUSTER_NAME}-control-plane" 31 spec: 32 replicas: ${CONTROL_PLANE_MACHINE_COUNT} 33 machineTemplate: 34 infrastructureRef: 35 kind: AWSMachineTemplate 36 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 37 name: "${CLUSTER_NAME}-control-plane" 38 kubeadmConfigSpec: 39 initConfiguration: 40 nodeRegistration: 41 name: '{{ ds.meta_data.local_hostname }}' 42 kubeletExtraArgs: 43 cloud-provider: aws 44 clusterConfiguration: 45 apiServer: 46 extraArgs: 47 cloud-provider: aws 48 controllerManager: 49 extraArgs: 50 cloud-provider: aws 51 joinConfiguration: 52 nodeRegistration: 53 name: '{{ ds.meta_data.local_hostname }}' 54 kubeletExtraArgs: 55 cloud-provider: aws 56 version: "${KUBERNETES_VERSION}" 57 --- 58 kind: AWSMachineTemplate 59 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 60 metadata: 61 name: "${CLUSTER_NAME}-control-plane" 62 spec: 63 template: 64 spec: 65 instanceType: "${AWS_CONTROL_PLANE_MACHINE_TYPE}" 66 iamInstanceProfile: "control-plane.cluster-api-provider-aws.sigs.k8s.io" 67 sshKeyName: "${AWS_SSH_KEY_NAME}" 68 --- 69 apiVersion: cluster.x-k8s.io/v1beta1 70 kind: MachineDeployment 71 metadata: 72 name: "${CLUSTER_NAME}-md-0" 73 spec: 74 clusterName: "${CLUSTER_NAME}" 75 replicas: ${WORKER_MACHINE_COUNT} 76 selector: 77 matchLabels: 78 template: 79 spec: 80 clusterName: "${CLUSTER_NAME}" 81 version: "${KUBERNETES_VERSION}" 82 bootstrap: 83 configRef: 84 name: "${CLUSTER_NAME}-md-0" 85 apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 86 kind: KubeadmConfigTemplate 87 infrastructureRef: 88 name: "${CLUSTER_NAME}-md-0" 89 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 90 kind: AWSMachineTemplate 91 --- 92 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 93 kind: AWSMachineTemplate 94 metadata: 95 name: "${CLUSTER_NAME}-md-0" 96 spec: 97 template: 98 spec: 99 instanceType: "${AWS_NODE_MACHINE_TYPE}" 100 iamInstanceProfile: "nodes.cluster-api-provider-aws.sigs.k8s.io" 101 sshKeyName: "${AWS_SSH_KEY_NAME}" 102 --- 103 apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 104 kind: KubeadmConfigTemplate 105 metadata: 106 name: "${CLUSTER_NAME}-md-0" 107 spec: 108 template: 109 spec: 110 joinConfiguration: 111 nodeRegistration: 112 name: '{{ ds.meta_data.local_hostname }}' 113 kubeletExtraArgs: 114 cloud-provider: aws