How Do I Restore a Faulty Container NIC?
If a container NIC is faulty, the container restarts repeatedly and cannot provide services for external systems. To rectify the fault, perform the following steps:
Procedure
- Configure the kubectl command by referring to Connecting to a CCE Cluster Using kubectl or web-terminal.
- After the kubectl command is configured successfully, run the following command on the client to delete the pod of the faulty container:
kubectl delete pod {podName} -n {podNamespace}
Where,
- {podName}: Enter the name of the pod of the faulty container.
- {podNamespace}: Enter the namespace where the pod is located.
- After the pod of the faulty container is deleted, the system automatically recreates a pod for the container. In this way, the container NIC is restored.
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.