example(iam-scim): add docs for ske integration #28
3 changed files with 36 additions and 0 deletions
|
|
@ -76,6 +76,42 @@ Once STACKIT support processes your ticket, they will configure the trust relati
|
|||
|
||||
---
|
||||
|
||||
## SKE Integration
|
||||
|
||||
Once the IdP integration for SKE is enabled, you can create an IdP-based kubeconfig. Using this kubeconfig to interact with the Kubernetes API server will authenticate you via the STACKIT IdP, which is federated through your connected Authentik instance.
|
||||
|
||||
For more details, see the [official STACKIT documentation](https://docs.stackit.cloud/products/runtime/kubernetes-engine/getting-started/access-cluster/#enable-idp-integration-in-cluster).
|
||||
|
||||
### Step 1: Create IdP Kubeconfig
|
||||
|
||||
Use the STACKIT CLI to create a kubeconfig that uses the IdP:
|
||||
|
||||
```bash
|
||||
stackit ske kubeconfig create --project-id <your-project-id> <cluster-name> --idp
|
||||
```
|
||||
|
||||
### Step 2: Switch Context
|
||||
|
||||
Switch your `kubectl` context to the newly created IdP context:
|
||||
|
||||
```bash
|
||||
kubectl config use-context <cluster-name>
|
||||
```
|
||||
|
||||
### Step 3: Verify Identity
|
||||
|
||||
Verify your identity using `kubectl auth whoami`:
|
||||
|
||||
```bash
|
||||
kubectl auth whoami
|
||||
```
|
||||
|
||||

|
||||
|
||||
The Kubernetes API will return your username, UID, and groups. The Group ID should match the associated group from Authentik. You can confirm the group ID in the STACKIT Portal's Access Management UI:
|
||||
|
||||

|
||||
|
||||
## Visual Verification
|
||||
|
||||
### 1. Dashboard/Application Overview
|
||||
|
|
|
|||
BIN
examples/iam-scim-integration/docs/show-scim-group-id.png
Normal file
BIN
examples/iam-scim-integration/docs/show-scim-group-id.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 174 KiB |
BIN
examples/iam-scim-integration/docs/terminal-k-whoami.png
Normal file
BIN
examples/iam-scim-integration/docs/terminal-k-whoami.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 56 KiB |
Loading…
Add table
Add a link
Reference in a new issue