安装及配置
1、下载二进制包
https://github.com/derailed/k9s/releases
tar -zxvf k9s_Linux_amd64.tar.gz
mv k9s /usr/local/bin/
2、配置kubeconfig
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
3、
# 执行启动命令, 进入 k9s
k9s
# List all available CLI options
k9s help
# Get info about K9s runtime (logs, configs, etc..)
k9s info
# Run K9s in a given namespace.
# 指定一个命名空间,进入 k9s 的时候直接进入这个命名空间
k9s -n mycoolns
# Run K9s and launch in pod view via the pod command.
k9s -c pod
# Start K9s in a non default KubeConfig context
k9s --context coolCtx
# Start K9s in readonly mode - with all modification commands disabled
# 使用只读模式启动 k9s ,禁用所有的编辑命令
k9s --readonly
https://k9scli.io/
https://blog.csdn.net/qq_22648091/article/details/137050642











网友评论