A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.scaleway.com/en/docs/kubernetes/how-to/connect-cluster-kubectl/ below:

How to connect to a Kubernetes Kapsule cluster with kubectl

  1. Home
  2. Kubernetes
  3. How to
  4. How to connect … er with kubectl
How to connect to a Kubernetes Kapsule cluster with kubectlReviewed on April 07, 2025

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.

Before you start

To complete the actions presented below, you must have:

Setting fine-grained permissions (IAM Policies) for Kubernetes access

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:

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.

Accessing the cluster

You can use the Scaleway CLI to automatically retrieve (and merge) your kubeconfig file, then interact with your Kubernetes cluster.

Install and configure the Scaleway CLI

If you have not set up the Scaleway CLI yet:

  1. Follow our installation guide for platform-specific instructions using Homebrew, Chocolatey, or manual methods.
  2. Run the following command and follow the prompts to set up your CLI with your Scaleway API keys: You will need your API Key (access key and secret key).
Retrieve and install the kubeconfig using scw
  1. Run the following command to install the kubeconfig file for your cluster:

    scw k8s kubeconfig install <cluster-id>

    This command will:

  2. Verify the installation:

    A list of nodes from your Kapsule cluster should appear.

Tip

Refer to our complete Documentation for scw k8s to learn more about all available commands to manage your Kubernetes cluster using scw.

Revoking user access to the Kubernetes cluster

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 access

To 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 key Modify IAM policies Reassign the user to a restricted group Delete the principal Revoking kubeconfig access

To permanently revoke kubeconfig access via IAM:

Note

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