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
Revise prerequisites for workload identity static PV mount
Updated prerequisites and instructions for using workload identity with static PV mount, including changes to role assignments and environment variable exports.
Copy file name to clipboardExpand all lines: docs/workload-identity-static-pv-mount.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@
9
9
- grant `Storage Blob Data Contributor` role instead of `Storage Account Contributor` role to the managed identity
10
10
11
11
## Prerequisites
12
-
### 1. Create a cluster with oidc-issuer enabled and get the credential
12
+
### 1. Create a cluster with oidc-issuer enabled and get the AKS cluster credential
13
13
14
14
Refer to the [documentation](https://learn.microsoft.com/en-us/azure/aks/use-oidc-issuer#create-an-aks-cluster-with-oidc-issuer) for instructions on creating a new AKS cluster with the `--enable-oidc-issuer` parameter and get the AKS credentials. And export following environment variables:
15
15
```console
@@ -19,14 +19,14 @@ export REGION=<your region>
19
19
```
20
20
21
21
### 2. Bring your own storage account and storage container
22
-
Refer to the [documentation](https://learn.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-cli) for instructions on creating a new storage account and container, or alternatively, utilize your existing storage account and container. And export following environment variables:
22
+
Refer to the [documentation](https://learn.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-cli) for instructions on creating a new storage account and container, or alternatively, utilize your existing storage account and container. And export following environment variables:
### 3. Create or bring your own managed identity and role assignment
29
+
### 3. Create or bring your own managed identity and grant role to the managed identity
30
30
> you could leverage the default user assigned managed identity bound to the AKS agent node pool(with naming rule [`AKS Cluster Name-agentpool`](https://docs.microsoft.com/en-us/azure/aks/use-managed-identity#summary-of-managed-identities)) in node resource group
31
31
```console
32
32
export UAMI=<your managed identity name>
@@ -46,7 +46,7 @@ az role assignment create --role "Storage Account Contributor" --assignee $USER_
46
46
az role assignment create --role "Storage Account Contributor" --assignee $USER_ASSIGNED_CLIENT_ID --scope $ACCOUNT_SCOPE
47
47
```
48
48
49
-
### 4. Create service account on AKS
49
+
### 4. Create a service account on AKS
50
50
```
51
51
export SERVICE_ACCOUNT_NAME=<your sa name>
52
52
export SERVICE_ACCOUNT_NAMESPACE=<your sa namespace>
0 commit comments