Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control-Plane IP May Dismatch in Multi Kind Cluster Situation #2784

Closed
bamboo12366 opened this issue May 22, 2022 · 3 comments
Closed

Control-Plane IP May Dismatch in Multi Kind Cluster Situation #2784

bamboo12366 opened this issue May 22, 2022 · 3 comments
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. triage/duplicate Indicates an issue is a duplicate of other open issue.

Comments

@bamboo12366
Copy link

What happened:
I have two kind cluster in my local env. One control-plane(Cluster-A) ip is 172.19.0.2, the other one(Cluster-B) is 172.19.0.3
Once restart the docker, the control-plane ip may mismatched since the start flow maybe different: Cluster-A become 172.19.0.3, Cluster-B become 172.19.0.2.

The Controller-manager reporting following error msg since the cert unmatched:
E0522 13:57:39.715038 1 reflector.go:138] k8s.io/client-go/informers/factory.go:134: Failed to watch *v1beta1.PodDisruptionBudget: failed to list *v1beta1.PodDisruptionBudget: Get "https://172.19.0.2:6443/apis/policy/v1beta1/poddisruptionbudgets?limit=500&resourceVersion=0": x509: certificate is valid for 10.96.0.1, 172.19.0.3, 127.0.0.1, not 172.19.0.2

What you expected to happen:
The ip should be consistent, or update the cert correspondingly

How to reproduce it (as minimally and precisely as possible):
Restart the docker

Anything else we need to know?:
I am not that familiar with kind, maybe there are some configuration to help me solve that?

Environment:
MacOS

  • kind version: (use kind version):
    0.10.0
  • Kubernetes version: (use kubectl version):
    1.20
  • Docker version: (use docker info):
    20.10.6
  • OS (e.g. from /etc/os-release):
    MacOS
@bamboo12366 bamboo12366 added the kind/bug Categorizes issue or PR as related to a bug. label May 22, 2022
@BenTheElder
Copy link
Member

/triage duplicate
Follow current developments at #2759

@k8s-ci-robot k8s-ci-robot added the triage/duplicate Indicates an issue is a duplicate of other open issue. label May 22, 2022
@BenTheElder BenTheElder self-assigned this May 22, 2022
@BenTheElder
Copy link
Member

#2045

@BenTheElder
Copy link
Member

a fix for #2045 just landed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. triage/duplicate Indicates an issue is a duplicate of other open issue.
Projects
None yet
Development

No branches or pull requests

3 participants