Saturday, 2022-06-04

airship-irc-bot<airshipcloud> After a little more research  (https://cluster-api.sigs.k8s.io/developer/architecture/controllers/control-plane.html#example-usage) it appears that in the KubeadmControlPlane resource, the `replicas` represent the desired number of control plane machines.  I manually edited the KubeadmControlPlane resource to match both the replica count and machineTemplate name values as referenced in the Treasuremap v2.121:48
airship-irc-bot"reference-airship-core//target/controlplane/patch_controlplane.yaml".  The three remaining nodes did provision; however, the original first target controlplane node (cloud11) was apparently kicked out of the etcd cluster which prevents it from starting kube-apiserver.  Rerunning the "controlplane-target" phase with kubeconfig pointing at cloud12 simply changes the replicas from three back to one. All but the original first target controlplane21:48
airship-irc-botnode (cloud11) are then deprovisioned, leaving no functioning etcd or kube-apiserver. ```root@cloud12:~# kubectl --kubeconfig /etc/kubernetes/admin.conf -n target-infra get KubeadmControlPlane NAME                   INITIALIZED   API SERVER AVAILABLE   VERSION   REPLICAS   READY   UPDATED   UNAVAILABLE cluster-controlplane   true          true                   v1.21.2   4                  3         4  root@cloud12:~# kubectl --kubeconfig21:48
airship-irc-bot/etc/kubernetes/admin.conf -n target-infra get machine NAME                         PROVIDERID       PHASE     VERSION cluster-controlplane-64zsl   metal3://02...   Running   v1.21.2 cluster-controlplane-dnvmf   metal3://c1...   Running   v1.21.2 cluster-controlplane-nkd8m   metal3://48...   Running   v1.21.2 cluster-controlplane-v24vl   metal3://5a...   Running   v1.21.2  root@cloud12:~# kubectl --kubeconfig /etc/kubernetes/admin.conf -n21:48
airship-irc-bottarget-infra get metal3machine NAME                           PROVIDERID       READY   CLUSTER          PHASE cluster-controlplane-2-m96jn   metal3://5a2...  true    target-cluster cluster-controlplane-2-smn9r   metal3://02...   true    target-cluster cluster-controlplane-2-xbvq8   metal3://48...   true    target-cluster cluster-controlplane-tvh8w     metal3://c1...   true    target-cluster  root@cloud12:~# kubectl --kubeconfig21:49
airship-irc-bot/etc/kubernetes/admin.conf -n target-infra get bmh NAME      STATE         CONSUMER                       ONLINE   ERROR cloud11   provisioned   cluster-controlplane-tvh8w     true cloud12   provisioned   cluster-controlplane-2-xbvq8   true cloud13   provisioned   cluster-controlplane-2-m96jn   true cloud14   provisioned   cluster-controlplane-2-smn9r   true```21:49
qwebirc8283#$gidnore23:49
qwebirc8283Personel23:49

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!