5757[source,bash]
5858----
5959for n in $(kubectl get nodes -oname); do
60- PROVIDERID=$(oc -n syn-debug-nodes --as=cluster- admin debug $n -- chroot /host cat /etc/systemd/system/kubelet.service.d/20-appuio-providerid.conf 2>&1 | grep PROVIDERID | sed -e 's/^Environment="KUBELET_PROVIDERID=\([^"]\+\)"$/\1/g')
61- echo kubectl --as=cluster- admin patch $n --type=merge -p "{\"spec\":{\"providerID\":\"${PROVIDERID}\"}}";
60+ PROVIDERID=$(oc -n syn-debug-nodes --as=system: admin debug $n -- chroot /host cat /etc/systemd/system/kubelet.service.d/20-appuio-providerid.conf 2>&1 | grep PROVIDERID | sed -e 's/^Environment="KUBELET_PROVIDERID=\([^"]\+\)"$/\1/g')
61+ echo kubectl --as=system: admin patch $n --type=merge -p "{\"spec\":{\"providerID\":\"${PROVIDERID}\"}}";
6262done
6363----
6464
6767[source,bash]
6868----
6969for n in $(kubectl get nodes -oname); do
70- PROVIDERID=$(oc -n syn-debug-nodes --as=cluster- admin debug $n -- chroot /host cat /etc/systemd/system/kubelet.service.d/20-appuio-providerid.conf 2>&1 | grep PROVIDERID | sed -e 's/^Environment="KUBELET_PROVIDERID=\([^"]\+\)"$/\1/g')
71- kubectl --as=cluster- admin patch $n --type=merge -p "{\"spec\":{\"providerID\":\"${PROVIDERID}\"}}";
70+ PROVIDERID=$(oc -n syn-debug-nodes --as=system: admin debug $n -- chroot /host cat /etc/systemd/system/kubelet.service.d/20-appuio-providerid.conf 2>&1 | grep PROVIDERID | sed -e 's/^Environment="KUBELET_PROVIDERID=\([^"]\+\)"$/\1/g')
71+ kubectl --as=system: admin patch $n --type=merge -p "{\"spec\":{\"providerID\":\"${PROVIDERID}\"}}";
7272done
7373kubectl get no -ocustom-columns='NAME:.metadata.name,PROVIDER_ID:.spec.providerID'
7474----
@@ -99,7 +99,7 @@ IMPORTANT: This step triggers node reboots to apply the Kubelet flag `--cloud-pr
9999+
100100[source,bash]
101101----
102- kubectl --as cluster- admin patch infrastructure.config cluster --type=merge -p '{"spec":{"platformSpec":{"external":{"platformName":"cloudscale.ch"},"type":"External"}}}'
102+ kubectl --as=system: admin patch infrastructure.config cluster --type=merge -p '{"spec":{"platformSpec":{"external":{"platformName":"cloudscale.ch"},"type":"External"}}}'
103103infrastructure.config.openshift.io/cluster patched
104104----
105105+
@@ -113,7 +113,7 @@ curl -XPATCH -H"Content-Type: application/merge-patch+json" http://localhost:800
113113+
114114[source,bash]
115115----
116- kubectl --as cluster- admin taint node --all node.cloudprovider.kubernetes.io/uninitialized=true:NoSchedule
116+ kubectl --as=system: admin taint node --all node.cloudprovider.kubernetes.io/uninitialized=true:NoSchedule
117117----
118118
119119. Check if instance-type is applied
0 commit comments