Skip to content

Commit 01cc920

Browse files
authored
Merge branch 'main' into feat/STACKITTPR-845-update-valkey-docs
2 parents ae8e4d4 + 7f001ee commit 01cc920

6 files changed

Lines changed: 816 additions & 43 deletions

File tree

docs/stackit_ske_kubeconfig_login.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ Login plugin for kubernetes clients, that creates short-lived credentials to aut
88
First you need to obtain a kubeconfig for use with the login command (first or second example).
99
Secondly you use the kubeconfig with your chosen Kubernetes client (third example), the client will automatically retrieve the credentials via the STACKIT CLI.
1010

11+
Project ID and region are resolved with the following precedence:
12+
13+
| Explicit flag | Global config | Exec cluster config | Result |
14+
| ------------- | ------------- | ------------------- | ------------------- |
15+
| Not set | Set | Not set | Global config |
16+
| Set | Set | Not set | Explicit flag |
17+
| Not set | Set | Set | Exec cluster config |
18+
| Set | Set | Set | Explicit flag |
19+
1120
```
1221
stackit ske kubeconfig login [flags]
1322
```
@@ -24,13 +33,18 @@ stackit ske kubeconfig login [flags]
2433
Use the previously saved kubeconfig to authenticate to the SKE cluster, in this case with kubectl.
2534
$ kubectl cluster-info
2635
$ kubectl get pods
36+
37+
Configure an IdP exec provider for a Kubernetes client that does not provide cluster information. In an SKE workload, the CLI automatically uses the projected workload identity token.
38+
$ stackit ske kubeconfig login --idp --cluster-name my-cluster --organization-id my-organization-id --project-id my-project-id --region eu01
2739
```
2840

2941
### Options
3042

3143
```
32-
-h, --help Help for "stackit ske kubeconfig login"
33-
--idp Use the STACKIT IdP for authentication to the cluster.
44+
--cluster-name string SKE cluster name. Used when the Kubernetes exec request does not provide cluster information.
45+
-h, --help Help for "stackit ske kubeconfig login"
46+
--idp Use the STACKIT IdP for authentication to the cluster.
47+
--organization-id string Organization ID. Used in IdP mode when the Kubernetes exec request does not provide cluster information.
3448
```
3549

3650
### Options inherited from parent commands

0 commit comments

Comments
 (0)