Monday, April 4, 2022
HomeCloud ComputingCluster API Supplier for VMware Cloud Director

Cluster API Supplier for VMware Cloud Director


#right here bootstrap.conf is kubeconfig of the bootstrap cluster from 1st part.

kubectl kubeconfig=bootstrap.conf apply f capimgmt.yaml

 

#examine the cluster standing

root@soar:~# kubectl get clusters

NAME           PHASE

mgmtcluster   Provisioned

root@soar:~#

 

#After profitable deployment of the mgmt-cluster, examine the machine standing

root@soar:~# kubectl get machines

NAME                               PROVIDERID                                                                   PHASE     VERSION

mgmtclustermanagementaircraft24n5m   vmwareclouddirector://urn:vcloud:vm:a62758c0-dfc3-4d6b-a436-f0b6d283567f   Working   v1.21.2+vmware.1

mgmtclustermanagementaircraft7x4w2   vmwareclouddirector://urn:vcloud:vm:76ae58f7-3141-4598-8ac2-8cc703a950cf   Working   v1.21.2+vmware.1

mgmtclustermanagementaircraftx8rql   vmwareclouddirector://urn:vcloud:vm:a677be71-d2e1-483f-8307-4450ea60fddb   Working   v1.21.2+vmware.1

mgmtclustermd0c579f7887d8hv4   vmwareclouddirector://urn:vcloud:vm:98338cfd-aaf0-4432-9a2f-8550a6a46e24   Working   v1.21.2+vmware.1

 

#Fetch the kubeconfig of the mgmt-cluster

clusterctl get kubeconfig mgmtcluster > mgmtcluster.kubeconfig

 

#use mgmt-cluster config to work with the brand new administration cluster

export KUBECONFIG=mgmtcluster.kubeconfig

 

#root@soar:~# kubectl get pods -A

NAMESPACE                           NAME                                                            READY   STATUS    RESTARTS   AGE

certsupervisor                        certsupervisor848f547974fmxs5                                   1/1     Working   0          26h

certsupervisor                        certsupervisorcainjector54f4cc6b59qlzz                         1/1     Working   0          26h

certsupervisor                        certsupervisorwebhook7c9588c76g94nx                            1/1     Working   0          26h

kubesystem                         antreaagenthm6vd                                              2/2     Working   0          35h

kubesystem                         antreaagentpjqbl                                              2/2     Working   0          35h

kubesystem                         antreaagentsjjhn                                              2/2     Working   0          35h

kubesystem                         antreaagentz4qdg                                              2/2     Working   0          35h

kubesystem                         antreacontroller64bcc67f948lv7c                              1/1     Working   0          35h

kubesystem                         coredns8dcb5c56bsnx29                                         1/1     Working   0          35h

kubesystem                         coredns8dcb5c56btznlp                                         1/1     Working   0          35h

kubesystem                         csivcdcontrollerplugin0                                      3/3     Working   0          35h

kubesystem                         csivcdnodepluginkjw5w                                        2/2     Working   0          35h

kubesystem                         etcdcapiclustermanagementaircraft24n5m                           1/1     Working   0          35h

kubesystem                         etcdcapiclustermanagementaircraft7x4w2                           1/1     Working   0          35h

kubesystem                         etcdcapiclustermanagementaircraftx8rql                           1/1     Working   0          35h

kubesystem                         kubeapiservercapiclustermanagementaircraft24n5m                 1/1     Working   0          35h

kubesystem                         kubeapiservercapiclustermanagementaircraft7x4w2                 1/1     Working   0          35h

kubesystem                         kubeapiservercapiclustermanagementaircraftx8rql                 1/1     Working   0          35h

kubesystem                         kubecontrollersupervisorcapiclustermanagementaircraft24n5m        1/1     Working   1          35h

kubesystem                         kubecontrollersupervisorcapiclustermanagementaircraft7x4w2        1/1     Working   1          35h

kubesystem                         kubecontrollersupervisorcapiclustermanagementaircraftx8rql        1/1     Working   0          35h

kubesystem                         kubeproxyjnjl2                                                1/1     Working   0          35h

kubesystem                         kubeproxylw6m7                                                1/1     Working   0          35h

kubesystem                         kubeproxym7gls                                                1/1     Working   0          35h

kubesystem                         kubeproxynsv9m                                                1/1     Working   0          35h

kubesystem                         kubeschedulercapiclustermanagementaircraft24n5m                 1/1     Working   1          35h

kubesystem                         kubeschedulercapiclustermanagementaircraft7x4w2                 1/1     Working   1          35h

kubesystem                         kubeschedulercapiclustermanagementaircraftx8rql                 1/1     Working   0          35h

kubesystem                         vmwareclouddirectorccm75bd684688pcktg                      1/1     Working   1          35h

 

#convert this cluster to work as administration cluster by putting in Cluster API

clusterctl init core clusterapi:v0.4.2 b kubeadm:v0.4.2 c kubeadm:v0.4.2

kubectl apply ok clusterapisupplierclouddirector/config/default

 

root@soar:~# kubectl get pods -A

NAMESPACE                           NAME                                                            READY   STATUS    RESTARTS   AGE

capikubeadmbootstrapsystem       capikubeadmbootstrapcontrollersupervisor7dc44947zdhvd        1/1     Working   1          26h

capikubeadmmanagementaircraftsystem   capikubeadmmanagementaircraftcontrollersupervisorcb9d954f57snk2   1/1     Working   0          26h

capisystem                         capicontrollersupervisor7594c7bc57mvpvx                        1/1     Working   0          26h

capvcdsystem                       capvcdcontrollersupervisor6bd95c99d88fzvf                      1/1     Working   0          26h

certsupervisor                        certsupervisor848f547974fmxs5                                   1/1     Working   0          26h

certsupervisor                        certsupervisorcainjector54f4cc6b59qlzz                         1/1     Working   0          26h

certsupervisor                        certsupervisorwebhook7c9588c76g94nx                            1/1     Working   0          26h

kubesystem                         antreaagenthm6vd                                              2/2     Working   0          35h

kubesystem                         antreaagentpjqbl                                              2/2     Working   0          35h

kubesystem                         antreaagentsjjhn                                              2/2     Working   0          35h

kubesystem                         antreaagentz4qdg                                              2/2     Working   0          35h

kubesystem                         antreacontroller64bcc67f948lv7c                              1/1     Working   0          35h

kubesystem                         coredns8dcb5c56bsnx29                                         1/1     Working   0          35h

kubesystem                         coredns8dcb5c56btznlp                                         1/1     Working   0          35h

kubesystem                         csivcdcontrollerplugin0                                      3/3     Working   0          35h

kubesystem                         csivcdnodepluginkjw5w                                        2/2     Working   0          35h

kubesystem                         etcdcapiclustermanagementaircraft24n5m                           1/1     Working   0          35h

kubesystem                         etcdcapiclustermanagementaircraft7x4w2                           1/1     Working   0          35h

kubesystem                         etcdcapiclustermanagementaircraftx8rql                           1/1     Working   0          35h

kubesystem                         kubeapiservercapiclustermanagementaircraft24n5m                 1/1     Working   0          35h

kubesystem                         kubeapiservercapiclustermanagementaircraft7x4w2                 1/1     Working   0          35h

kubesystem                         kubeapiservercapiclustermanagementaircraftx8rql                 1/1     Working   0          35h

kubesystem                         kubecontrollersupervisorcapiclustermanagementaircraft24n5m        1/1     Working   1          35h

kubesystem                         kubecontrollersupervisorcapiclustermanagementaircraft7x4w2        1/1     Working   1          35h

kubesystem                         kubecontrollersupervisorcapiclustermanagementaircraftx8rql        1/1     Working   0          35h

kubesystem                         kubeproxyjnjl2                                                1/1     Working   0          35h

kubesystem                         kubeproxylw6m7                                                1/1     Working   0          35h

kubesystem                         kubeproxym7gls                                                1/1     Working   0          35h

kubesystem                         kubeproxynsv9m                                                1/1     Working   0          35h

kubesystem                         kubeschedulercapiclustermanagementaircraft24n5m                 1/1     Working   1          35h

kubesystem                         kubeschedulercapiclustermanagementaircraft7x4w2                 1/1     Working   1          35h

kubesystem                         kubeschedulercapiclustermanagementaircraftx8rql                 1/1     Working   0          35h

kubesystem                         vmwareclouddirectorccm75bd684688pcktg                      1/1     Working   1          35h

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments