kubectl
配置
kubectl config set-credentials myself --username=admin --password=secret
kubectl config set-cluster local-server --server=http://localhost:8080
kubectl config set-context default-context --cluster=local-server --user=myself --namespace=default
kubectl config use-context default-context
kubectl config view常用命令格式
创建的资源类型
参数
命令行自动补全
自定义输出列
日志查看
连接到一个正在运行的容器
在容器内部执行命令
端口转发
API Server 代理
文件拷贝
kubectl drain
权限检查
模拟其他用户
查看事件(events)
kubectl 插件
原始 URI
附录
最后更新于