labring / sealos

Sealos is a production-ready Kubernetes distribution. You can run any Docker image on sealos, start high availability databases like mysql/pgsql/redis/mongo, develop applications using any Programming language.
https://cloud.sealos.io
Apache License 2.0
13.87k stars 2.07k forks source link

BUG: Modifying pod_cidr via pod_subnet does not take effect #4779

Closed cnmac closed 3 months ago

cnmac commented 3 months ago

Sealos Version

v4.3.7

How to reproduce the bug?

  1. sealos reset
  2. rm ~/.sealos/ -rf
  3. sealos gen docker.io/labring/kubernetes:v1.27.14 --masters 192.168.x.x --pk=$HOME/.ssh/id_rsa -o ./Clusterfile
  4. sed -i "s|100.64.0.0/10|100.77.0.0/10|g" ./Clusterfile
  5. sed -i "s|10.96.0.0/22|10.99.0.0/22|g" ./Clusterfile
  6. sealos apply -f ./Clusterfile
  7. sealos run labring/helm:v3.14.1
  8. sealos run labring/cilium:v1.14.11 --env ExtraValues="ipam.mode=kubernetes"
  9. kubectl get pods --namespace=kube-system -l k8s-app=kube-dns -o wide

What is the expected behavior?

The IP address assigned to the expected pod is 100.77.x.x

What do you see instead?

In fact, the IP assigned to the pod is 100.64.x.x: image The running configuration of the kube-controller-manager pod is as follows: image

Operating environment

- Sealos version: 4.3.7
- Docker version: none
- Kubernetes version: 1.27.14
- Operating system: centos7
- Runtime environment: 32core 128G
- Cluster size: 1
- Additional information: none

Additional information

No response

gclm commented 3 months ago

这个问题 5.0.0-beta5 版本也存在

image
lingdie commented 3 months ago

image image