From 16e3c90e63783e0655b45074b555f657cceb4d2a Mon Sep 17 00:00:00 2001 From: Ashutosh Kumar Date: Thu, 27 Jul 2023 21:28:16 +0530 Subject: [PATCH] add doc for workload identity Signed-off-by: Ashutosh Kumar --- docs/book/src/SUMMARY.md | 1 + docs/book/src/topics/multitenancy.md | 32 +++- docs/book/src/topics/workload-identity.md | 206 ++++++++++++++++++++++ 3 files changed, 233 insertions(+), 6 deletions(-) create mode 100644 docs/book/src/topics/workload-identity.md diff --git a/docs/book/src/SUMMARY.md b/docs/book/src/SUMMARY.md index ac3bc96e754..704fb4a86b2 100644 --- a/docs/book/src/SUMMARY.md +++ b/docs/book/src/SUMMARY.md @@ -34,6 +34,7 @@ - [Windows](./topics/windows.md) - [Flatcar](./topics/flatcar.md) - [WebAssembly / WASI Pods](./topics/wasi.md) + - [Workload Identity](./topics/workload-identity.md) - [Development](./developers/development.md) - [Kubernetes Developers](./developers/kubernetes-developers.md) - [Releasing](./developers/releasing.md) diff --git a/docs/book/src/topics/multitenancy.md b/docs/book/src/topics/multitenancy.md index ad05e3429ac..1dee83eb304 100644 --- a/docs/book/src/topics/multitenancy.md +++ b/docs/book/src/topics/multitenancy.md @@ -2,11 +2,31 @@ To enable single controller multi-tenancy, a different Identity can be added to the Azure Cluster that will be used as the Azure Identity when creating Azure resources related to that cluster. -This is achieved using the [aad-pod-identity](https://azure.github.io/aad-pod-identity) library. +This is achieved using [workload identity](https://azure.github.io/azure-workload-identity). Workload identity is the next iteration of the now deprecated [aad-pod-identity](https://azure.github.io/aad-pod-identity). ## Identity Types -### Service Principal With Client Password +### Workload Identity (Recommended) + +Follow this [link](./workload-identity.md) for a quick start guide on setting up workload identity. + +Once you've set up the management cluster with the workload identity (see link above), the corresponding values should be used to create an `AzureClusterIdentity` resource. Create an `azure-cluster-identity.yaml` file with the following content: + +```yaml +apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 +kind: AzureClusterIdentity +metadata: + name: cluster-identity +spec: + type: WorkloadIdentity + tenantID: + clientID: + allowedNamespaces: + list: + - +``` + +### AAD Pod Identity using Service Principal With Client Password (Deprecated) Once a new SP Identity is created in Azure, the corresponding values should be used to create an `AzureClusterIdentity` Kubernetes resource. Create an `azure-cluster-identity.yaml` file with the following contents: @@ -49,7 +69,7 @@ data: clientSecret: ``` -### Service Principal With Certificate +### AAD Pod Identity using Service Principal With Certificate (Deprecated) Once a new SP Identity is created in Azure, the corresponding values should be used to create an `AzureClusterIdentity` resource: @@ -94,7 +114,7 @@ data: password: PASSWORD ``` -### User-Assigned Managed Identity +### AAD Pod Identity using User-Assigned Managed Identity (Deprecated)