kubeconfig command ΒΆ

Create a kubeconfig file for connecting to available clusters for you. This requires that you have the gcloud command line tool installed, configured and logged in. You can log in with gcloud auth login --update-adc.

bash
FlagShortDescription
overwrite-oOverwrite config already in the kubeconfig-file
clear-cDelete config before retrieving new one
exclude-eExclude clusters from the config, comma separated list of cluster names
verbose-vMore output, mostly useful combined with overwrite

hello

You don't have to use the environment variable KUBECONFIG, instead you can use the default kubectl-folder ~/.kube. Delete the old navikt/kubeconfig-repo and remove the environment file, and then run nais kubeconfig.