Get a self contained k8s config for usage in other tools(Use with caution)

Many a times we would like to view/manage the K8s cluster remotely using clients like Lens, k9s etc. I was searching for this information across, and found the below commands:

# kubectl config view --flatten > k8s.cfg

On the remote system, place the k8s.cfg file under:

<user home dir>\.kube

For e.g., on a Windows desktop for user abc, place it under:

C:\Users\abc\.kube

Note: You need to use this with caution as you can access complete K8s cluster with this data.

Comments

Popular posts from this blog

Office Picture Manager opens slowly

How to find out the version of cygwin

Graylog - an easy solution for log management