Restart the ovnkube-master pod
To replace the ovnkube-master pod with a new instance on MicroShift, you can delete the existing pod in the openshift-ovn-kubernetes namespace. Confirm that a new pod appears when you list pods in that namespace.
-
The OpenShift CLI (
oc) is installed. -
You have root access to the node.
-
A node installed on infrastructure configured with the OVN-Kubernetes network plugin.
-
The KUBECONFIG environment variable is set.
-
Access the remote node by running the following command:
$ export KUBECONFIG=$PWD/kubeconfig -
Find the name of the
ovnkube-masterpod that you want to restart by running the following command:$ pod=$(oc get pods -n openshift-ovn-kubernetes | awk -F " " '/ovnkube-master/{print $1}') -
Delete the
ovnkube-masterpod by running the following command:$ oc -n openshift-ovn-kubernetes delete pod $pod -
Confirm that a new
ovnkube-masterpod is running by using the following command:$ oc get pods -n openshift-ovn-kubernetesThe listing of the running pods shows a new
ovnkube-masterpod name and age.