Kubernetes Cluster
Check Kubernetes
Check if all apps and pods are ready.
expeca@controller-01:/opt/chi-in-a-box$ kubectl get svc,deployment,pod -n kube-system
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/kube-dns ClusterIP 10.43.0.10 <none> 53/UDP,53/TCP,9153/TCP 37h
service/metrics-server ClusterIP 10.43.31.114 <none> 443/TCP 37h
NAME READY UP-TO-DATE AVAILABLE AGE
deployment.apps/metrics-server 1/1 1 1 37h
deployment.apps/local-path-provisioner 1/1 1 1 37h
deployment.apps/coredns 1/1 1 1 37h
NAME READY STATUS RESTARTS AGE
pod/kube-multus-ds-kl2tk 1/1 Running 0 37h
pod/metrics-server-9cf544f65-t86w5 1/1 Running 0 37h
pod/local-path-provisioner-64ffb68fd-qv5m4 1/1 Running 0 37h
pod/coredns-85cb69466-4glrk 1/1 Running 0 37hCommands to check the nodes
kubectl get nodes -o wide
kubectl describe nodes worker-01Check if all services on a node are running healthy
Check network attachment definitions
Check K8S config file on the controller
How to completely remove the K3S Server
Run the following on the controller to completly uninstall the k8s master:
To install k8s master again, just use kolla:
NOTE: After bringing up a new K3S master, you have to re-deploy blazar,zun, and doni so they copy over the new kubeconfig file.
Last updated