@@ -245,7 +245,7 @@ stringData:
245
245
ibmcloud_api_key: ${BASE64_API_KEY}
246
246
type : addons.cluster.x-k8s.io/resource-set
247
247
---
248
- apiVersion : addons.cluster.x-k8s.io/v1beta1
248
+ apiVersion : addons.cluster.x-k8s.io/v1beta2
249
249
kind : ClusterResourceSet
250
250
metadata :
251
251
name : crs-cloud-conf
@@ -262,7 +262,7 @@ spec:
262
262
name : cloud-controller-manager-addon
263
263
strategy : ApplyOnce
264
264
---
265
- apiVersion : bootstrap.cluster.x-k8s.io/v1beta1
265
+ apiVersion : bootstrap.cluster.x-k8s.io/v1beta2
266
266
kind : KubeadmConfigTemplate
267
267
metadata :
268
268
labels :
@@ -282,8 +282,10 @@ spec:
282
282
nodeRegistration :
283
283
criSocket : /var/run/containerd/containerd.sock
284
284
kubeletExtraArgs :
285
- cloud-provider : external
286
- eviction-hard : nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%
285
+ - name : cloud-provider
286
+ value : external
287
+ - name : eviction-hard
288
+ value : nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%
287
289
name : ' {{ v1.local_hostname }}'
288
290
preKubeadmCommands :
289
291
- hostname "{{ v1.local_hostname }}"
@@ -292,7 +294,7 @@ spec:
292
294
- echo "127.0.0.1 {{ v1.local_hostname }}" >>/etc/hosts
293
295
- echo "{{ v1.local_hostname }}" >/etc/hostname
294
296
---
295
- apiVersion : cluster.x-k8s.io/v1beta1
297
+ apiVersion : cluster.x-k8s.io/v1beta2
296
298
kind : Cluster
297
299
metadata :
298
300
labels :
@@ -309,15 +311,15 @@ spec:
309
311
cidrBlocks :
310
312
- ${SERVICE_CIDR:="10.128.0.0/12"}
311
313
controlPlaneRef :
312
- apiVersion : controlplane.cluster.x-k8s.io/v1beta1
314
+ apiVersion : controlplane.cluster.x-k8s.io/v1beta2
313
315
kind : KubeadmControlPlane
314
316
name : ${CLUSTER_NAME}-control-plane
315
317
infrastructureRef :
316
318
apiVersion : infrastructure.cluster.x-k8s.io/v1beta2
317
319
kind : IBMPowerVSCluster
318
320
name : ${CLUSTER_NAME}
319
321
---
320
- apiVersion : cluster.x-k8s.io/v1beta1
322
+ apiVersion : cluster.x-k8s.io/v1beta2
321
323
kind : MachineDeployment
322
324
metadata :
323
325
name : ${CLUSTER_NAME}-md-0
@@ -332,7 +334,7 @@ spec:
332
334
spec :
333
335
bootstrap :
334
336
configRef :
335
- apiVersion : bootstrap.cluster.x-k8s.io/v1beta1
337
+ apiVersion : bootstrap.cluster.x-k8s.io/v1beta2
336
338
kind : KubeadmConfigTemplate
337
339
name : ${CLUSTER_NAME}-md-0
338
340
clusterName : ${CLUSTER_NAME}
@@ -342,7 +344,7 @@ spec:
342
344
name : ${CLUSTER_NAME}-md-0
343
345
version : ${KUBERNETES_VERSION}
344
346
---
345
- apiVersion : controlplane.cluster.x-k8s.io/v1beta1
347
+ apiVersion : controlplane.cluster.x-k8s.io/v1beta2
346
348
kind : KubeadmControlPlane
347
349
metadata :
348
350
name : ${CLUSTER_NAME}-control-plane
@@ -354,12 +356,13 @@ spec:
354
356
- ${IBMPOWERVS_VIP}
355
357
- ${IBMPOWERVS_VIP_EXTERNAL}
356
358
extraArgs :
357
- cloud-provider : external
359
+ - name : cloud-provider
360
+ value : external
358
361
controlPlaneEndpoint : ${IBMPOWERVS_VIP}:${API_SERVER_PORT:=6443}
359
362
controllerManager :
360
363
extraArgs :
361
- cloud-provider : external
362
- enable-hostpath-provisioner : " true "
364
+ - name : cloud-provider
365
+ value : external
363
366
files :
364
367
- content : |
365
368
apiVersion: v1
@@ -481,8 +484,10 @@ spec:
481
484
nodeRegistration :
482
485
criSocket : /var/run/containerd/containerd.sock
483
486
kubeletExtraArgs :
484
- cloud-provider : external
485
- eviction-hard : nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%
487
+ - name : cloud-provider
488
+ value : external
489
+ - name : eviction-hard
490
+ value : nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%
486
491
name : ' {{ v1.local_hostname }}'
487
492
joinConfiguration :
488
493
discovery :
@@ -494,8 +499,10 @@ spec:
494
499
nodeRegistration :
495
500
criSocket : /var/run/containerd/containerd.sock
496
501
kubeletExtraArgs :
497
- cloud-provider : external
498
- eviction-hard : nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%
502
+ - name : cloud-provider
503
+ value : external
504
+ - name : eviction-hard
505
+ value : nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%
499
506
name : ' {{ v1.local_hostname }}'
500
507
preKubeadmCommands :
501
508
- hostname "{{ v1.local_hostname }}"
@@ -506,7 +513,6 @@ spec:
506
513
- mkdir -p /etc/pre-kubeadm-commands
507
514
- for script in $(find /etc/pre-kubeadm-commands/ -name '*.sh' -type f | sort);
508
515
do echo "Running script $script"; "$script"; done
509
- useExperimentalRetryJoin : true
510
516
machineTemplate :
511
517
infrastructureRef :
512
518
apiVersion : infrastructure.cluster.x-k8s.io/v1beta2
0 commit comments