-
-
Notifications
You must be signed in to change notification settings - Fork 452
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
[BUG] - Incorrect server
key in ./kube/config, no matter what
#876
Comments
I am having same issue in Windows 10. My k3d config yaml, apiVersion: k3d.io/v1alpha3
kind: Simple
name: local-k8s
servers: 1
agents: 0
kubeAPI:
host: "localhost"
hostIP: "127.0.0.1"
hostPort: "6555"
ports:
- port: 80:80
nodeFilters:
- loadbalancer
options:
kubeconfig:
updateDefaultKubeconfig: true
switchCurrentContext: true and in my kube context file, - cluster:
certificate-authority-data: ****
server: https://host.docker.internal:6555 *** instead of https://localhost:6555
name: k3d-local-k8s $ k3d version
k3d version v5.2.0
k3s version v1.21.7-k3s1 (default) |
@b-palaniappan -- if it helps at all, I'm using a small script to spin up my environment, so I just use this one-liner as a workaround for now...all you need is the
|
Hi @armenr , thanks for opening this issue! |
Thank you @iwilltry42 ! I'll pull down an update to test & confirm. I appreciate the care and expedience with which you got back to us! :) |
@armenr , here you go: https://github.com/rancher/k3d/releases/tag/v5.2.1-rc.0 |
@armenr , can you confirm that it's fixed in the RC? |
@iwilltry42 I validated |
Thanks @b-palaniappan 🙏 |
Looks good! @iwilltry42 Thank you again :) |
What did you do
Create the following config:
How was the cluster created?
k3d cluster create --config k3d_local.yml
What did you do afterwards?
kubectl cluster-info
cat ~/kube/config
What did you expect to happen
kubectl cluster-info
to return outputserver: https://myendpoint.mysubdomain.ngrok.io:6445
in~/.kube/config
Screenshots or terminal output
Checking ~/.kube/config -- you can see the problem under cluster --> server
Which OS & Architecture
Which version of
k3d
k3d version
Which version of docker
docker version
anddocker info
The text was updated successfully, but these errors were encountered: