Hello there! I'm setting up a k3s cluster using a...
# k3s
c
Hello there! I'm setting up a k3s cluster using a
docker-compose.yaml
file. I'm running the API server bound to a specific Docker network IP (e.g., 172.18.0.1), and I would like the generated
kubeconfig
to reflect this IP instead of defaulting to
127.0.0.1
. I've already tried setting
--advertise-address=172.18.0.1
and
--tls-san=172.18.0.1
in the k3s server arguments, but the
kubeconfig
still shows
<https://127.0.0.1:6443>
as the server endpoint. Is there a recommended way to override the server address in the generated
kubeconfig
when running in this kind of setup? Thanks in advance!
c
It is hardcoded to point at a loopback address.
c
Yes, I saw that in the code, thank you