8
8
pods :
9
9
cidrBlocks :
10
10
- 192.168.0.0/16
11
- serviceDomain : cluster.local
11
+ serviceDomain : " cluster.local"
12
12
infrastructureRef :
13
- apiVersion : infrastructure.cluster.x-k8s.io/v1beta1
13
+ apiVersion : infrastructure.cluster.x-k8s.io/v1beta2
14
14
kind : CloudStackCluster
15
15
name : ${CLUSTER_NAME}
16
16
controlPlaneRef :
17
17
kind : KubeadmControlPlane
18
18
apiVersion : controlplane.cluster.x-k8s.io/v1beta1
19
19
name : ${CLUSTER_NAME}-control-plane
20
20
---
21
- apiVersion : infrastructure.cluster.x-k8s.io/v1beta1
21
+ apiVersion : infrastructure.cluster.x-k8s.io/v1beta2
22
22
kind : CloudStackCluster
23
23
metadata :
24
24
name : ${CLUSTER_NAME}
25
25
spec :
26
26
controlPlaneEndpoint :
27
27
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}
33
38
---
34
- apiVersion : controlplane.cluster.x-k8s.io/v1beta1
35
39
kind : KubeadmControlPlane
40
+ apiVersion : controlplane.cluster.x-k8s.io/v1beta1
36
41
metadata :
37
42
name : " ${CLUSTER_NAME}-control-plane"
38
43
spec :
39
44
kubeadmConfigSpec :
40
- clusterConfiguration :
41
- imageRepository : k8s.gcr.io
42
45
initConfiguration :
43
46
nodeRegistration :
47
+ name : ' {{ local_hostname }}'
44
48
kubeletExtraArgs :
45
49
provider-id : " cloudstack:///'{{ ds.meta_data.instance_id }}'"
46
- name : ' {{ local_hostname }}'
47
50
joinConfiguration :
48
51
nodeRegistration :
52
+ name : ' {{ local_hostname }}'
49
53
kubeletExtraArgs :
50
54
provider-id : " cloudstack:///'{{ ds.meta_data.instance_id }}'"
51
- name : ' {{ local_hostname }}'
52
55
preKubeadmCommands :
53
56
- swapoff -a
54
57
machineTemplate :
55
58
infrastructureRef :
59
+ apiVersion : infrastructure.cluster.x-k8s.io/v1beta2
56
60
kind : CloudStackMachineTemplate
57
- apiVersion : infrastructure.cluster.x-k8s.io/v1beta1
58
61
name : " ${CLUSTER_NAME}-control-plane"
59
62
replicas : ${CONTROL_PLANE_MACHINE_COUNT}
60
63
version : ${KUBERNETES_VERSION}
61
64
---
62
- apiVersion : infrastructure.cluster.x-k8s.io/v1beta1
65
+ apiVersion : infrastructure.cluster.x-k8s.io/v1beta2
63
66
kind : CloudStackMachineTemplate
64
67
metadata :
65
68
name : ${CLUSTER_NAME}-control-plane
69
72
sshKey : ${CLOUDSTACK_SSH_KEY_NAME}
70
73
offering :
71
74
name : ${CLOUDSTACK_CONTROL_PLANE_MACHINE_OFFERING}
72
- template :
75
+ template :
73
76
name : ${CLOUDSTACK_TEMPLATE_NAME}
74
77
---
75
78
apiVersion : cluster.x-k8s.io/v1beta1
@@ -83,19 +86,19 @@ spec:
83
86
matchLabels : null
84
87
template :
85
88
spec :
89
+ clusterName : " ${CLUSTER_NAME}"
90
+ version : " ${KUBERNETES_VERSION}"
86
91
bootstrap :
87
92
configRef :
93
+ name : " ${CLUSTER_NAME}-md-0"
88
94
apiVersion : bootstrap.cluster.x-k8s.io/v1beta1
89
95
kind : KubeadmConfigTemplate
90
- name : " ${CLUSTER_NAME}-md-0"
91
- clusterName : " ${CLUSTER_NAME}"
92
96
infrastructureRef :
93
97
name : " ${CLUSTER_NAME}-md-0"
94
- apiVersion : infrastructure.cluster.x-k8s.io/v1beta1
98
+ apiVersion : infrastructure.cluster.x-k8s.io/v1beta2
95
99
kind : CloudStackMachineTemplate
96
- version : ${KUBERNETES_VERSION}
97
100
---
98
- apiVersion : infrastructure.cluster.x-k8s.io/v1beta1
101
+ apiVersion : infrastructure.cluster.x-k8s.io/v1beta2
99
102
kind : CloudStackMachineTemplate
100
103
metadata :
101
104
name : ${CLUSTER_NAME}-md-0
@@ -105,7 +108,7 @@ spec:
105
108
sshKey : ${CLOUDSTACK_SSH_KEY_NAME}
106
109
offering :
107
110
name : ${CLOUDSTACK_WORKER_MACHINE_OFFERING}
108
- template :
111
+ template :
109
112
name : ${CLOUDSTACK_TEMPLATE_NAME}
110
113
---
111
114
apiVersion : bootstrap.cluster.x-k8s.io/v1beta1
@@ -117,8 +120,8 @@ spec:
117
120
spec :
118
121
joinConfiguration :
119
122
nodeRegistration :
123
+ name : ' {{ local_hostname }}'
120
124
kubeletExtraArgs :
121
125
provider-id : " cloudstack:///'{{ ds.meta_data.instance_id }}'"
122
- name : ' {{ local_hostname }}'
123
126
preKubeadmCommands :
124
127
- swapoff -a
0 commit comments