Kubeconfig files

A kubeconfig file provides kubectl with the API server address and credentials that you need to access the cluster of a project.

A kubeconfig file lets you switch between clusters, users, and namespaces by using contexts. Cloudera Cloud Factory generates a ready-to-use kubeconfig file that you can download.

Select Kubeconfigs to list the files that exist for the project and to create new ones.

Figure 1. Kubeconfigs list

Kubeconfigs list

Name downloaded files in a consistent way, for example <cluster-name>-kubeconfig.yaml, so that you can tell them apart.

The Kubeconfig Visibility options correspond to the two kubeconfig types. Specific User creates a personal kubeconfig that only the selected user can use. Users with access to the Project or Managers creates an application kubeconfig for all users with project access or for project managers only. The name of a kubeconfig file must contain at least three lowercase alphanumeric characters.

Your kubeconfig file is already authenticated. To interact with your cluster, you can use the built-in terminal or download the file and set it up on your local host. The following actions are available:

Table 1. Kubeconfig file actions
ActionDescription
Open TerminalOpens a terminal in your browser to manage the cluster, so you do not need to install kubectl.
DownloadDownloads a .yaml configuration file that gives access to the cluster.
DeleteDeletes the kubeconfig file.

For recommendations about managing kubeconfig credentials, see Best practices for user credentials.