https://rancher.com/ logo
#k3d
Title
# k3d
a

alert-motherboard-33953

12/22/2022, 10:28 AM
any ideas?
a

adventurous-judge-82125

12/22/2022, 10:45 AM
How are you handling the kubectl config? https://k3d.io/v5.3.0/usage/kubeconfig/
a

alert-motherboard-33953

12/22/2022, 10:45 AM
its the one created by k3d
no changes to it
a

adventurous-judge-82125

12/22/2022, 10:46 AM
ok, what do you get by k3d cluster list?
a

alert-motherboard-33953

12/22/2022, 10:47 AM
Copy code
k3d cluster list
NAME   SERVERS   AGENTS   LOADBALANCER
hord   1/1       0/0      true
a

adventurous-judge-82125

12/22/2022, 10:48 AM
can you diff the kubeconfig with the one you have?
a

alert-motherboard-33953

12/22/2022, 10:49 AM
so I created a config file with
Copy code
k3d kubeconfig write hord
its the same as my
.kube/config
a

adventurous-judge-82125

12/22/2022, 10:50 AM
kubectl config get-contexts
sorry, but for me its seems like sth is wrong with the credentials in the config file. So lets make sure that everything on that path is ok
a

alert-motherboard-33953

12/22/2022, 10:51 AM
Copy code
kubectl config get-contexts
CURRENT   NAME       CLUSTER    AUTHINFO         NAMESPACE
*         k3d-hord   k3d-hord   admin@k3d-hord
a

adventurous-judge-82125

12/22/2022, 10:54 AM
Hmm, that worked for me. seems like its a deeper issue :(
a

alert-motherboard-33953

12/22/2022, 10:54 AM
seems like it
I have searched for this, but most information is regarding kubectl with kubernetes
not so much with k3d
ok so I got it working
I generated a new config file with
k3d kubeconfig write hord
then copied that over my existing .kube/config
then stopped and started the cluster
¯\_(ツ)_/¯
thanks for your help @adventurous-judge-82125
a

adventurous-judge-82125

12/22/2022, 11:58 AM
You're welcome
2 Views