摘要: kubectl api-resources [root@master ~]# kubectl api-resources NAME SHORTNAMES APIGROUP NAMESPACED KIND bindings true Binding componentstatuses cs false 阅读全文
posted @ 2020-08-11 23:30 LeoShi2020 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 查看集群信息 kubectl cluster-info [root@master ~]# kubectl cluster-info Kubernetes master is running at https://10.2.30.171:6443 KubeDNS is running at https 阅读全文
posted @ 2020-08-11 23:26 LeoShi2020 阅读(1068) 评论(0) 推荐(0) 编辑
摘要: kubeadm token create --print-join-command [root@master ~]# kubeadm token create --print-join-command W0811 11:13:51.716068 18508 configset.go:202] WAR 阅读全文
posted @ 2020-08-11 23:15 LeoShi2020 阅读(3685) 评论(0) 推荐(0) 编辑
摘要: k8s命令补全 yum install -y bash-* \cp /etc/profile /etc/profile.bak sed -i '2a source <(kubectl completion bash)' /etc/profile source /etc/profile END 阅读全文
posted @ 2020-08-11 23:11 LeoShi2020 阅读(337) 评论(0) 推荐(0) 编辑
摘要: 安装k8s时报错 [root@master ~]# cat /etc/docker/daemon.json { "registry-mirrors": [ "https://kfwkfulq.mirror.aliyuncs.com", "https://2lqq34jg.mirror.aliyunc 阅读全文
posted @ 2020-08-11 00:05 LeoShi2020 阅读(1781) 评论(0) 推荐(0) 编辑