Warning
This page was translated from the original Japanese version by PLaMo Translate. The Japanese version is authoritative; the English translation may contain inaccuracies.
Connecting to a Cluster
This page provides instructions for connecting to your Kubernetes cluster.
Installing the Command Line Tool for Cluster Operations
You will connect to your Kubernetes cluster using the kubectl command-line tool.
For installation instructions, refer to the official documentation.
Configuring Kubernetes Cluster Connection Credentials
- Navigate to the kubectl setup page in your portal.
- From the Cluster Name dropdown menu, select the cluster you wish to use.
- Click Get Credentials, copy the generated command, and execute it in your terminal.
Note
Connecting to Clusters from Multiple Environments
If you are connecting to clusters from multiple environments, repeat the Get Credentials process for each environment to generate and use separate commands.
Reusing the same credentials across multiple environments will result in credential invalidation and failure to operate the cluster, accompanied by the following error:
failed to refresh token: oauth2: "invalid_grant" "Unknown or invalid refresh token."If your credentials have been invalidated, you will need to obtain new credentials and re-configure them.
Verifying the Connection
Run kubectl auth whoami to verify that your Username displays your email address and that the Groups section shows your organization’s group name.
$ kubectl auth whoami
ATTRIBUTE VALUE
Username oidc:<your-organization-name>/<your-email-address>
Groups [oidc:<your-organization-name> system:authenticated]