系統 - K8s - 常見操作指令



參考資訊:
https://kubernetes.io/docs/tasks/debug/debug-application/get-shell-running-container/

List Pod

$ sudo kubectl get pod

Remove All Resources

$ sudo kubectl delete -f xxx.yaml
$ sudo kubectl delete pods --all

Attach Console

$ kubectl exec --stdin --tty shell-demo -- /bin/bash