crooked-flag-77848
05/23/2025, 2:23 PMdocker-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!creamy-pencil-82913
05/23/2025, 5:07 PMcrooked-flag-77848
05/24/2025, 5:11 AM