Obtaining a kubeconfig file
A kubeconfig file is required to remotely deploy infrastructure on the Harvester
clusters within Condenser. You may need to provide it to kubectl or to the Harvester
Terraform provider.
The kubeconfig file contains a secret token that uses your credentials to authenticate to the Harvester cluster. Do not share it with anyone.
- Log in to the Rancher GUI
- Navigate to the Harvester cluster that you want to access
- In the bottom left corner, click on Support
- Click on Download KubeConfig. Your browser will download a file named
<cluster name>.yaml - Open the downloaded file in a text editor
- Remove the
certificate-authority-datakey and value
This is your kubeconfig file.
The Harvester Terraform provider
accepts the path to the kubeconfig file from the KUBECONFIG environment variable
or as configuration to the provider block.
See the Kubernetes documentation
for instructions to use a kubeconfig file with kubectl.