我要评分
获取效率
正确性
完整性
易理解

Opening the CLI of the Specified MySQL Pod

Run the following command on the K8s primary node:

1
kubectl exec -it <pod-name> -n <namespace> /bin/bash

For example, run the following command to access the system in the mysql-1 pod:

1
kubectl exec -it mysql-1 -n ns-mysql-test /bin/bash