On my Mac accessing the CONFIG file of kubectl exist in a painful location as follows
$HOME/.kube/config
When using the command "kubectl proxy" and invoking the UI requires you to browse to the CONFIG file which finder doesn't expose easily. One way around this is as follows
1. Save a copy of that config file in your current directory as follows
papicella@papicella:~/temp$ cat ~/.kube/config > kubeconfig
2. Invoke "kubectl proxy" to start a UI server to your K8's cluster
papicella@papicella:~/temp$ kubectl proxy
Starting to serve on 127.0.0.1:8001
3. Navigate to the UI using an URL as follows
http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/#!/overview
4. At this point we can browse to the easily accessible TEMP directory to the file "kubeconfig" we created at step #1 and then click "Sing In" button
1 comment:
I like reading through your website. Many thanks!
Post a Comment