Git Product home page Git Product logo

Comments (7)

hi-usui avatar hi-usui commented on August 23, 2024 5

Setting ControlPlaneEndpoint does not fix the issue of changing the IP address. If I change the IP address, the API-server will not start. Even when setting ControlPlaneEndpoint

I second this. It is mandatory for me to specify IP address in "advertiseAddress", and when I put a hostname resolved by DNS in controlPlaneEndpoint in kubeadm, it still fails if IP address changes. Anything we can do?

from apiserver.

mogliang avatar mogliang commented on August 23, 2024 5

is it still true that apiserver advertise address must be IP? i'm curious that why it cannot be hostname? what difficulity will be face if use hostname?

from apiserver.

fejta-bot avatar fejta-bot commented on August 23, 2024 1

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

from apiserver.

simonklb avatar simonklb commented on August 23, 2024 1

Looks like this is being solved, at least partially, by the introduction of ControlPlaneEndpoint. kubernetes/kubernetes#59288

Even more work is being done to support HA masters here: kubernetes/kubernetes#58261

And the progress is being tracked here: kubernetes/kubeadm#261

from apiserver.

SamDecrock avatar SamDecrock commented on August 23, 2024

Setting ControlPlaneEndpoint does not fix the issue of changing the IP address. If I change the IP address, the API-server will not start. Even when setting ControlPlaneEndpoint

from apiserver.

furkanmustafa avatar furkanmustafa commented on August 23, 2024

This is an insane requirement. Such a parameter should just accept a hostname as well.

My current workaround is;

  • decide a bogus IP (127.33.22.11) to be used in all nodes, use this for advertising
  • manage an ipvs entry locally, to virtually map that ip to the changing target IP
FAKE_IP=127.33.22.11
REAL_IPS_OR_HOSTNAMES="127.0.0.1 $(dig +short api2)"
ipvsadm -A -t $FAKE_IP:6443
for ip in $REAL_IPS; do
  ipvsadm -a -t $FAKE_IP:6443 -r $ip:6443 -m
done

kube-apiserver \
  --advertise-address ${FAKE_IP} \
  ...

from apiserver.

furkanmustafa avatar furkanmustafa commented on August 23, 2024

Hmm 🤔

E1217 00:46:52.116565    5486 controller.go:227] unable to sync kubernetes service: Endpoints "kubernetes" is invalid: subsets[0].addresses[1].ip: Invalid value: "127.33.22.11": may not be in the loopback range (127.0.0.0/8, ::1/128)

.. better choose an IP address out of this range. the rule above doesn't say anything about multicast ranges.

from apiserver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.