Skip to content

Instantly share code, notes, and snippets.

@lqshow
Last active October 31, 2020 01:48
Show Gist options
  • Select an option

  • Save lqshow/b65ed686fcdf5684bbc1c6bd225d3596 to your computer and use it in GitHub Desktop.

Select an option

Save lqshow/b65ed686fcdf5684bbc1c6bd225d3596 to your computer and use it in GitHub Desktop.
Kubernetes command line tools

工具列表

  1. kubectx:用于切换kubernetes context
  2. kubens:用于切换kubernetes namespace
  3. kube-ps1:为命令行终端增加$PROMPT字段
  4. kube-shell:交互式带命令提示的kubectl终端

终端下kubectl命令自动补全

# 修改~/.zshrc文件
if [ /usr/local/bin/kubectl ]; then source <(kubectl completion zsh); fi

参考

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment