Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get kubeconfig by ssh into cluster

Tags:

kubernetes

If I am able to SSH into the master or any nodes in the cluster, is it possible for me to get 1) the kubeconfig file or 2) all information necessary to compose my own kubeconfig file?

like image 490
s g Avatar asked Dec 02 '25 20:12

s g


1 Answers

You could find configuration on master node under /etc/kubernetes/admin.conf (on v1.8+).

On some versions of kubernetes, this can be found under ~/.kube

like image 127
YAP Avatar answered Dec 05 '25 11:12

YAP



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!