Download Kubeconfig
Last updated
Last updated
A kubeconfig
file is used to configure access to Kubernetes.
You can download the kubeconfig
file:
You can download the kubeconfig
file using configuration management tools such as IonosCTL CLI, Ansible, and Terraform. Following are a few options to retrieve the kubeconfig
files.
Tool | Parameter Reference | Description |
---|---|---|
| You can retrieve the | |
| You can retrieve the | |
| You can interact with the |
Note: If you do not want to use any tools like IonosCTL CLI, Ansible, or Terraform, you can retrieve the kubeconfig
file directly from the Get Kubernetes Configuration File API using tools like cURL
or Wget
.
In the DCD, go to Menu > Containers > Managed Kubernetes.
In Kubernetes Manager, select a cluster from the cluster list.
In the Cluster Settings tab, select either kubeconfig.yaml or kubeconfig.json from the drop-down list to download the kubeconfig
file.
Alternatively, you can also select the Kubernetes element in the Workspace and download the kubeconfig
file in the Inspector pane.
Result: The kubeconfig
file is successfully downloaded.
Note: Only administrators can retrieve the kubeconfig
file without a node pool. All other users need to create a node pool first.