k8s 常用排查问题命令

kubectl 运行 pod

# 模板 :
kubectl run mysql-client --image={image:version} -it --rm --restart=Never -- bash
kubectl run mysql-client --image={image:version} -it --rm --restart=Never -- sh


# mysql clinet
kubectl run mysql-client --image=mysql:5.7 -it --rm --restart=Never -- bash

# busybox
kubectl run mysql-client --image=busybox:latest -it --rm --restart=Never -- sh
posted @ 2021-11-08 10:38  运维之爪  阅读(129)  评论(0编辑  收藏  举报