jmeter怎么编写socket脚本
435
2022-09-09
k8s高可用集群6安装跨节点通信插件Calico
在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.x remotes/origin/manual-installation-v1.23.x remotes/origin/master
查看new.yaml中的pod网段
[root@k8s-master01 ~]#cat /root/new.yamlkubernetesVersion: v1.23.4networking: dnsDomain: cluster.local podSubnet: 172.16.0.0/12 #pod网段 serviceSubnet: 192.168.0.0/16#可通过如下命令查看
[root@k8s-master01 ~]#cat /etc/kubernetes/manifests/kube-controller-manager.yaml | grep cluster-cidr= - --cluster-cidr=172.16.0.0/12
只在master01执行:
[root@k8s-master01 ~]#cd /root/k8s-ha-install && git checkout manual-installation-v1.23.x && cd calico/
[root@k8s-master01 ~/k8s-ha-install/calico]#lscalico-etcd.yaml calico.yaml
修改pod网段并执行创建
[root@k8s-master01 ~]#cd /root/k8s-ha-install/calico[root@k8s-master01 ~/k8s-ha-install/calico]#POD_SUBNET=`cat /etc/kubernetes/manifests/kube-controller-manager.yaml | grep cluster-cidr= | awk -F= '{print $NF}'`[root@k8s-master01 ~/k8s-ha-install/calico]#echo $POD_SUBNET172.16.0.0/12[root@k8s-master01 ~/k8s-ha-install/calico]#sed -i "s#POD_CIDR#${POD_SUBNET}#g" calico.yaml[root@k8s-master01 ~/k8s-ha-install/calico]#kubectl apply -f calico.yaml#如果不愿意执行命令修改,也可以手动修改,vim calico.yaml后搜索POD_CIDR
执行创建
[root@k8s-master01 ~/k8s-ha-install/calico]#kubectl apply -f calico.yaml
查看容器和节点状态
[root@k8s-master01 ~/k8s-ha-install/calico]#kubectl get
查看节点状态
[root@k8s-master01 ~/k8s-ha-install/calico]#kubectl get nodeNAME STATUS ROLES AGE VERSIONk8s-master01 Ready control-plane,master 174m v1.23.4k8s-master02 Ready control-plane,master 123m v1.23.4k8s-master03 Ready
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~