Skip to content

Credentials file

To access Kubernetes containers through Visual Studio Code or the command line utility kubectl, you need a local credentials file generated by Rancher.

The KubeConfig YAML file tells local applications how to access the Kubernetes cluster icekube.

  • In Rancher:

    • click the button Download KubeConfig to download the file icekube.yaml
  • In Linux:

    • save the file to ~/.kube/config
    • set file permissions with chmod 600 ~/.kube/config
  • In Windows:

    • save the file to C:\Users\username\.kube\config

kube config