88 pods :
99 cidrBlocks :
1010 - 192.168.0.0/16
11- serviceDomain : cluster.local
11+ serviceDomain : " cluster.local"
1212 infrastructureRef :
13- apiVersion : infrastructure.cluster.x-k8s.io/v1beta1
13+ apiVersion : infrastructure.cluster.x-k8s.io/v1beta2
1414 kind : CloudStackCluster
1515 name : ${CLUSTER_NAME}
1616 controlPlaneRef :
1717 kind : KubeadmControlPlane
1818 apiVersion : controlplane.cluster.x-k8s.io/v1beta1
1919 name : ${CLUSTER_NAME}-control-plane
2020---
21- apiVersion : infrastructure.cluster.x-k8s.io/v1beta1
21+ apiVersion : infrastructure.cluster.x-k8s.io/v1beta2
2222kind : CloudStackCluster
2323metadata :
2424 name : ${CLUSTER_NAME}
2525spec :
2626 controlPlaneEndpoint :
2727 host : ${CLUSTER_ENDPOINT_IP}
28- port : ${CLUSTER_ENDPOINT_PORT}
29- zones :
30- - name : ${CLOUDSTACK_ZONE_NAME}
31- network :
32- name : ${CLOUDSTACK_NETWORK_NAME}
28+ port : ${CLUSTER_ENDPOINT_PORT=6443}
29+ failureDomains :
30+ - name : ${CLOUDSTACK_FD1_NAME=failure-domain-1}
31+ acsEndpoint :
32+ name : ${CLOUDSTACK_FD1_SECRET_NAME=cloudstack-credentials}
33+ namespace : ${CLOUDSTACK_FD1_SECRET_NAMESPACE=default}
34+ zone :
35+ name : ${CLOUDSTACK_ZONE_NAME}
36+ network :
37+ name : ${CLOUDSTACK_NETWORK_NAME}
3338---
34- apiVersion : controlplane.cluster.x-k8s.io/v1beta1
3539kind : KubeadmControlPlane
40+ apiVersion : controlplane.cluster.x-k8s.io/v1beta1
3641metadata :
3742 name : " ${CLUSTER_NAME}-control-plane"
3843spec :
3944 kubeadmConfigSpec :
40- clusterConfiguration :
41- imageRepository : k8s.gcr.io
4245 initConfiguration :
4346 nodeRegistration :
47+ name : ' {{ local_hostname }}'
4448 kubeletExtraArgs :
4549 provider-id : " cloudstack:///'{{ ds.meta_data.instance_id }}'"
46- name : ' {{ local_hostname }}'
4750 joinConfiguration :
4851 nodeRegistration :
52+ name : ' {{ local_hostname }}'
4953 kubeletExtraArgs :
5054 provider-id : " cloudstack:///'{{ ds.meta_data.instance_id }}'"
51- name : ' {{ local_hostname }}'
5255 preKubeadmCommands :
5356 - swapoff -a
5457 machineTemplate :
5558 infrastructureRef :
59+ apiVersion : infrastructure.cluster.x-k8s.io/v1beta2
5660 kind : CloudStackMachineTemplate
57- apiVersion : infrastructure.cluster.x-k8s.io/v1beta1
5861 name : " ${CLUSTER_NAME}-control-plane"
5962 replicas : ${CONTROL_PLANE_MACHINE_COUNT}
6063 version : ${KUBERNETES_VERSION}
6164---
62- apiVersion : infrastructure.cluster.x-k8s.io/v1beta1
65+ apiVersion : infrastructure.cluster.x-k8s.io/v1beta2
6366kind : CloudStackMachineTemplate
6467metadata :
6568 name : ${CLUSTER_NAME}-control-plane
6972 sshKey : ${CLOUDSTACK_SSH_KEY_NAME}
7073 offering :
7174 name : ${CLOUDSTACK_CONTROL_PLANE_MACHINE_OFFERING}
72- template :
75+ template :
7376 name : ${CLOUDSTACK_TEMPLATE_NAME}
7477---
7578apiVersion : cluster.x-k8s.io/v1beta1
@@ -83,19 +86,19 @@ spec:
8386 matchLabels : null
8487 template :
8588 spec :
89+ clusterName : " ${CLUSTER_NAME}"
90+ version : " ${KUBERNETES_VERSION}"
8691 bootstrap :
8792 configRef :
93+ name : " ${CLUSTER_NAME}-md-0"
8894 apiVersion : bootstrap.cluster.x-k8s.io/v1beta1
8995 kind : KubeadmConfigTemplate
90- name : " ${CLUSTER_NAME}-md-0"
91- clusterName : " ${CLUSTER_NAME}"
9296 infrastructureRef :
9397 name : " ${CLUSTER_NAME}-md-0"
94- apiVersion : infrastructure.cluster.x-k8s.io/v1beta1
98+ apiVersion : infrastructure.cluster.x-k8s.io/v1beta2
9599 kind : CloudStackMachineTemplate
96- version : ${KUBERNETES_VERSION}
97100---
98- apiVersion : infrastructure.cluster.x-k8s.io/v1beta1
101+ apiVersion : infrastructure.cluster.x-k8s.io/v1beta2
99102kind : CloudStackMachineTemplate
100103metadata :
101104 name : ${CLUSTER_NAME}-md-0
@@ -105,7 +108,7 @@ spec:
105108 sshKey : ${CLOUDSTACK_SSH_KEY_NAME}
106109 offering :
107110 name : ${CLOUDSTACK_WORKER_MACHINE_OFFERING}
108- template :
111+ template :
109112 name : ${CLOUDSTACK_TEMPLATE_NAME}
110113---
111114apiVersion : bootstrap.cluster.x-k8s.io/v1beta1
@@ -117,8 +120,8 @@ spec:
117120 spec :
118121 joinConfiguration :
119122 nodeRegistration :
123+ name : ' {{ local_hostname }}'
120124 kubeletExtraArgs :
121125 provider-id : " cloudstack:///'{{ ds.meta_data.instance_id }}'"
122- name : ' {{ local_hostname }}'
123126 preKubeadmCommands :
124127 - swapoff -a
0 commit comments