Skip to content

Commit

Permalink
Docs: oidc targets (#1251)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertgraeff authored Oct 21, 2024
1 parent 62a7d07 commit 7817686
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions docs/usage/Targets.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ On the resource cluster you define a Service Account like the following:

```yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: <someName> # e.g. test-service-account
Expand All @@ -232,6 +231,7 @@ On the target cluster (not the resource cluster!) you define the cluster role bi
service account on the resource cluster, e.g. as follows:

```yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: <someName>
Expand All @@ -253,22 +253,22 @@ And now it is time to define an OIDC Target on the resource cluster:

```yaml
apiVersion: landscaper.gardener.cloud/v1alpha1
kind: Target
metadata:
name: <targetName>
namespace: <targetNamespace>
spec:
config:
audience:
- <clientID of OpenIDConnect on the target cluster>
caData: LS... # ca data of the target cluster
server: <ApiServerUrl of the target cluster> # https://api.<clusterName>...
serviceAccount:
name: <name of Service Account>
namespace: <namespace of Service Account> # might be different from the Target namespace
expirationSeconds: <some integer> # optional, defaults to 86400 = 60 * 60 * 24
oidcConfig:
audience:
- <clientID of OpenIDConnect on the target cluster>
caData: LS... # ca data of the target cluster
server: <ApiServerUrl of the target cluster> # https://api.<clusterName>...
serviceAccount:
name: <name of Service Account>
namespace: <namespace of Service Account> # might be different from the Target namespace
expirationSeconds: <some integer> # optional, defaults to 86400 = 60 * 60 * 24
type: landscaper.gardener.cloud/kubernetes-cluster
```

Expand Down

0 comments on commit 7817686

Please sign in to comment.