创建集群时用的是 --pod-network-cidr=10.244.0.0/16 (当时准备使用Flannel),现在想改为 --pod-network-cidr=192.168.0.0/16 (现在准备使用Calico),请问在不重建集群的情况下如何修改?

1)kubectl -n kube-system edit cm kubeadm-config
2)vim /etc/kubernetes/manifests/kube-scheduler.yaml

通过 kubectl cluster-info dump | grep -m 1 cluster-cidr 命令可以检查配置是否生效

相关文章:

  • 2023-03-20
  • 2021-12-06
  • 2021-11-26
  • 2021-06-13
猜你喜欢
  • 2022-12-23
  • 2021-08-10
  • 2022-12-23
  • 2021-12-25
  • 2021-12-29
  • 2021-09-29
  • 2021-10-02
相关资源
相似解决方案