Comments (7)
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 settingControlPlaneEndpoint
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.
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.
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.
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.
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.
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.
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)
- apiserver fails json patches with 422 when patch body does not match default json.Marshal encoding HOT 4
- unable to get openapi models: OpenAPIV3 config must not be nil HOT 1
- log error about cert expired - does not show important info HOT 8
- Is it possible to disable TLS in apiserver? I would want istio sidecar to terminate TLS. HOT 4
- Update grpc/otelgrpc dependency to fix CVE-2023-47108 HOT 2
- Segfault when kube-client is not specified.
- Invalid Go version in go.mod HOT 1
- Expose username and group from the appropriate headers HOT 9
- Panic if RecommendedOptions.CoreAPI is nil
- apiserver returns incorrectly results when "Limit" and "LabelSelector" parameters are both set in certain case HOT 7
- Update go-restful module to version >= 3.8.0 due to security issues HOT 5
- OIDC errors HOT 4
- Weird behaviour for remainingItemCount for List HOT 5
- EOL Component HOT 6
- `undefined: unsafe.StringData` on build 1.27-rc.0 with go 1.19 HOT 3
- feature request - audit policy non-resource URL full wildcard support HOT 4
- Query on ContinueToken HOT 8
- Tag v0.28.1 - Issue HOT 6
- Dependency upgrade request - Incompatibility with go.opentelemetry.io/otel version v.1.15.0 and above HOT 5
- New apiserver release that fixes CVE-2023-44487 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apiserver.