k8s kubectl 自动补全
CentOS:
1 | yum install bash-completion -y |
MacOS:
1 | $ brew install bash-completion |
参考:
https://kubernetes.io/docs/tasks/tools/#enabling-shell-autocompletion
https://github.com/xujiyou/blog-data/blob/master/%E4%BA%91%E5%8E%9F%E7%94%9F/Kubernetes/K8sFAQ.md