Creating a Service Account for the Cluster Role By Using a Script

To create a service account and bind it to the cluster role, you can use a script.

The script creates a kubeconfig file that contains the information that is needed to add the Kubernetes cluster in the Command Center using the service account authentication method.

The script must have the necessary permissions to create the service account and to bind it to the cluster role.

Procedure

  • On the Kubernetes cluster or on the access node for Kubernetes, from the command line, run the script to create a service account and bind it to the cluster role:

    script_path server_FQDN service_account

    For example, the script can be as follows:

    https://kubernetes_master_hostname_or_ip:6443 cv-role-service-account

Loading...