You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: containers/kubernetes/how-to/connect-cluster-kubectl.mdx
+12-7Lines changed: 12 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,13 +15,12 @@ categories:
15
15
16
16
Once your [cluster is created](/containers/kubernetes/how-to/create-cluster/), you can install a `kubeconfig` file unsing Scaleway's command-line tool on your local machine to manage your Kubernetes cluster.
17
17
18
-
You can use this with `kubectl`, the Kubernetes command-line tool, 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.
19
-
18
+
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.
20
19
<Macroid="requirements" />
21
20
22
21
- A [Scaleway account](https://console.scaleway.com) logged into the console.
23
22
-[Owner status](https://console.scaleway.com) or [IAM permissions](/identity-and-access-management/iam/concepts/#permission) to perform actions in the intended Organization.
24
-
- Created a [Kubernetes Kapsule cluster](/containers/kubernetes/how-to/create-cluster/)
23
+
- Created a [Kubernetes Kapsule cluster](/containers/kubernetes/how-to/create-cluster/).
- The [Scaleway CLI](/developer-tools/scaleway-cli/quickstart/) installed locally.
27
26
@@ -44,8 +43,9 @@ To create a new policy with the correct permission sets, follow these steps:
44
43
-`KubernetesFullAccess` for full cluster management.
45
44
-`KubernetesReadOnly` for read-only access.
46
45
4. Click **Validate** and then **Create Policy**.
47
-
48
-
Refer to our [policy and permission sets documentation](/identity-and-access-management/iam/reference-content/permission-sets/) for more details.
46
+
<Messagetype="tip">
47
+
Refer to our [policy and permission sets documentation](/identity-and-access-management/iam/reference-content/permission-sets/) for more details.
48
+
</Message>
49
49
50
50
## Accessing the cluster
51
51
@@ -60,7 +60,8 @@ If you have not set up the Scaleway CLI yet:
60
60
```bash
61
61
scw init
62
62
```
63
-
You will need your [API Key](https://identity-and-access-management/iam/how-to/#creating-API-keys) (access key and secret key).
63
+
You will need your [API Key](https://identity-and-access-management/iam/how-to/#creating-API-keys) (access key & secret key).
64
+
64
65
65
66
### Retrieve and install the kubeconfig using `scw`
66
67
@@ -70,10 +71,14 @@ If you have not set up the Scaleway CLI yet:
70
71
```
71
72
This command will:
72
73
- Download the `kubeconfig` for the specified cluster.
73
-
- Merge it into your existing kubeconfig file (default location: `~/.kube/config`).
74
+
- Merge it into your existing `kubeconfig` file (default location: `~/.kube/config`).
74
75
75
76
2. Verify the installation:
76
77
```bash
77
78
kubectl get nodes
78
79
```
79
80
A list of nodes from your Kapsule cluster should appear. If not, review the troubleshooting section.
81
+
82
+
<Messagetype="tip">
83
+
Refer to our complete [Documentation for `scw k8s`](https://github.com/scaleway/scaleway-cli/blob/master/docs/commands/k8s.md) to learn more about all available commands to manage your Kubernetes cluster using `scw`.
0 commit comments