Once your cluster is created, you can install a kubeconfig
file using Scaleway's command-line tool on your local machine to manage your Kubernetes cluster.
You can use this with kubectl
, the Kubernetes command-line tool, allowing you to run commands against your Kubernetes cluster. This enables you to deploy applications, inspect and manage cluster resources, and view logs directly from your local machine.
To complete the actions presented below, you must have:
If your Organization uses IAM to control access, ensure that you or your group/application has the following permission sets assigned at the Project scope:
KubernetesFullAccess
(or KubernetesReadOnly
, depending on your needs): Grants you the ability to manage (or list/read) Kubernetes clusters, nodes, and related actions in your Scaleway Project.If you have not yet configured IAM on your account, you can generate a kubeconfig
file with IAM and the required permission sets from the Scaleway console after creating a cluster.
You can use the Scaleway CLI to automatically retrieve (and merge) your kubeconfig
file, then interact with your Kubernetes cluster.
If you have not set up the Scaleway CLI yet:
Run the following command to install the kubeconfig
file for your cluster:
scw k8s kubeconfig install <cluster-id>
This command will:
kubeconfig
for the specified cluster.kubeconfig
file (default location: ~/.kube/config
).Verify the installation:
A list of nodes from your Kapsule cluster should appear.
Refer to our complete Documentation for scw k8s
to learn more about all available commands to manage your Kubernetes cluster using scw
.
When a user loses access rights (e.g., departs from the Organization), the Kubernetes administrator must take steps to revoke their access to the cluster. This is typically done by modifying IAM settings, such as adjusting policies or deleting the userâs credentials.
Steps to revoke accessTo revoke a user's access to the cluster, ensure that any API keys associated with the user are no longer granted permission. Here are the steps you can take:
Delete the API keyTo permanently revoke kubeconfig
access via IAM:
kubeconfig
file becomes invalid immediately.RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4