文章分类 -  k8s

摘要:1、若集群中没有设置网络,方法如下: mkdir -p /etc/cni/net.d vi 10-flannel.conflist { "name": "cbr0", "plugins": [ { "type": "flannel", "delegate": { "hairpinMode": tru 阅读全文
posted @ 2021-03-12 16:36 丛丛丛丛 阅读(2123) 评论(0) 推荐(0)
摘要:kubeadm init 报错如下: 注意到报错:[ERROR SystemVerification]: could not unmarshal the JSON output of 'docker info': shell-init: 获取当前目录时出错: getcwd: 无法访问父目录: 没有那 阅读全文
posted @ 2021-03-12 14:21 丛丛丛丛 阅读(5378) 评论(0) 推荐(1)
摘要:join集群时节点一直是不可用状态: 在节点上查看日志: journalctl -f -u kubelet.service 报错如下: 3月 10 16:25:56 server6 kubelet[9720]: E0310 16:25:56.458944 9720 kubelet.go:2184] 阅读全文
posted @ 2021-03-10 16:30 丛丛丛丛 阅读(14376) 评论(0) 推荐(1)
摘要:集群删除时再join时报错如下: [kubelet-check] Initial timeout of 40s passed. error execution phase kubelet-start: error uploading crisocket: timed out waiting for 阅读全文
posted @ 2021-03-10 16:01 丛丛丛丛 阅读(2497) 评论(0) 推荐(1)
摘要:#1、docker 安装并启动 yum install docker 设置加速器:/etc/docker/daemon.json 中加入以下内容: [root@server2 ~]# cat /etc/docker/daemon.json { "registry-mirrors": ["https: 阅读全文
posted @ 2021-03-09 13:35 丛丛丛丛 阅读(66) 评论(0) 推荐(0)
摘要:[preflight] Running pre-flight checks. [WARNING FileExisting-crictl]: crictl not found in system path [preflight] Some fatal errors occurred: [ERROR F 阅读全文
posted @ 2021-03-08 17:32 丛丛丛丛 阅读(637) 评论(0) 推荐(0)
摘要:1、安装工具 yum install -y bash-completion 2、加入环境变量 方法一:source /usr/share/bash-completion/bash_completion 方法二:修改/etc/profile 增加一行:source <(kubectl completi 阅读全文
posted @ 2021-03-08 15:21 丛丛丛丛 阅读(105) 评论(0) 推荐(0)
摘要:准备2台机器: master 节点:192.168.10.134 minion 节点:192.168.10.135 安装: master ,这里134主机也充当了etcd数据库的角色 1、执行:yum install kubernetes-master flanneld etcd *rhsm* -y 阅读全文
posted @ 2021-03-03 15:29 丛丛丛丛 阅读(764) 评论(0) 推荐(0)