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 |
Parent topic: K8s MGR Maintenance