Create a kubeconfig file that lets a user or tool connect to the cluster of a project with kubectl.
- Select Add KubeConfig.
- In Name, enter a name for the file.
- Optional: in Namespace, choose a namespace to limit the access.
Leave All Namespaces to allow access to every namespace. If you select a namespace, the cluster-admin and admin roles are hidden in Role.
- In Role, choose cluster-admin, admin, edit, or view.
- In Valid Through, choose how long the file stays valid, from 1 hour to 10 year, Never expires or Custom.
The default value is Never expires. Cloudera recommends that you set a finite value, for example, 1 day.
- In Kubeconfig Visibility, choose who can download the file: Users with access to the Project, Managers, or Specific User.
- Select Add.
- Click the More Options (three dots) icon next to the new kubeconfig file, and then select Download.
Figure 1. Add Kubeconfig drawer

Figure 2. Kubeconfig role options

Figure 3. Kubeconfig validity options
