Create file in ~/.bashrc.d/kubectl.config
export KUBECONFIG=YOUR_CUSTOM_LOCATION_CONFIG_PATH:${KUBECONFIG:-$HOME/.kube/config}
after create file like above, open terminal and input command
source ~/.bashrc
for check config is works you can use command
kubectl get pod
Top comments (0)