摘要: #1、拉取镜像 docker pull node:latest #2、运行 docker run -itd --name node-test --restart=always node #--restart=always 重启参数 docker exec -it node-test /bin/bas 阅读全文
posted @ 2022-02-27 21:46 linuxTang 阅读(815) 评论(0) 推荐(0)
摘要: 在master01上查看是否又1.23.X [root@k8s-master01 ~/k8s-ha-install/calico]#git branch -a * manual-installation-v1.23.x remotes/origin/manual-installation-v1.22 阅读全文
posted @ 2022-02-27 17:26 linuxTang 阅读(287) 评论(0) 推荐(0)
摘要: 1查看集群中所有namespace里的容器。发现都是running状态 [root@k8s-master01 ~]#kubectl get pod --all-namespaces 2查看监控数据 [root@k8s-master01 ~]#kubectl top pod -n kube-syste 阅读全文
posted @ 2022-02-27 17:24 linuxTang 阅读(317) 评论(0) 推荐(0)
摘要: 1安装 [root@k8s-master01 ~]#cd /root/k8s-ha-install/dashboard/ [root@k8s-master01 ~/k8s-ha-install/dashboard]#kubectl create -f . 2谷歌浏览器访问前的设置 在谷歌浏览器启动文 阅读全文
posted @ 2022-02-27 16:51 linuxTang 阅读(231) 评论(0) 推荐(0)
摘要: 在新版的k8s中,系统资源的采集均用Metrics-server,通过Metrics可采集节点及Pod内存,磁盘,cpu和网络使用率等信息 1将master01节点的front-proxy-ca.crt复制到所有的Node节点里: [root@k8s-master01 ~]#scp /etc/kub 阅读全文
posted @ 2022-02-27 15:38 linuxTang 阅读(105) 评论(0) 推荐(0)
摘要: 新创建的集群,token过期时间是24个小时,查看过期时间 #1查看自己设置的token名: [root@k8s-master01 ~]#cat new.yaml token: 7t2weq.bjbawausm0jaxury#2过滤出token文件 [root@k8s-master01 ~]#kub 阅读全文
posted @ 2022-02-27 13:09 linuxTang 阅读(921) 评论(0) 推荐(0)
摘要: Master01初始化 1集群初始化之前一行要先重启一下containerd,由于没用重启这个报错整整折腾了我一天,报错内容如下: [root@k8s-master01 ~]#kubeadm config images pull --config /root/new.yaml fail to pul 阅读全文
posted @ 2022-02-27 12:16 linuxTang 阅读(457) 评论(0) 推荐(0)