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
Copy file name to clipboardExpand all lines: docs/workload-identity-static-pv-mount.md
+42-3Lines changed: 42 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,8 @@
1
1
# workload identity support on static provisioning
2
2
- supported from v1.23.3
3
+
4
+
This feature is specifically designed for blobfuse mount and is not available for NFS mount as NFS mount does not require credentials. There is a standalone blobfuse mount for every pod, it may cause performance issues when multiple pods are present on a single node.
5
+
3
6
## Prerequisites
4
7
### 1. Create a cluster with oidc-issuer enabled and get the credential
### 2. Bring your own storage account and storage container
14
17
Following the [documentation](https://learn.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-cli) to create a new storage account and container or use your own. And export following environment variables:
serviceAccountName: $SERVICE_ACCOUNT_NAME #required, Pod does not use this service account has no permission to mount the volume
148
+
nodeSelector:
149
+
"kubernetes.io/os": linux
150
+
containers:
151
+
- image: mcr.microsoft.com/oss/nginx/nginx:1.19.5
152
+
name: nginx-blobfuse
153
+
command:
154
+
- "/bin/bash"
155
+
- "-c"
156
+
- set -euo pipefail; while true; do echo $(date) >> /mnt/blobfuse/outfile; sleep 1; done
157
+
volumeMounts:
158
+
- name: persistent-storage
159
+
mountPath: "/mnt/blobfuse"
160
+
readOnly: false
161
+
volumes:
162
+
- name: persistent-storage
163
+
csi:
164
+
driver: blob.csi.azure.com
165
+
volumeAttributes:
166
+
storageaccount: $ACCOUNT # required
167
+
containerName: $CONTAINER # required
168
+
clientID: $USER_ASSIGNED_CLIENT_ID # required
169
+
resourcegroup: $STORAGE_RESOURCE_GROUP # optional, specified when the storage account is not under AKS node resource group(which is prefixed with "MC_")
170
+
# tenantID: $IDENTITY_TENANT # optional, only specified when workload identity and AKS cluster are in different tenant
171
+
# subscriptionid: $SUBSCRIPTION # optional, only specified when workload identity and AKS cluster are in different subscription
0 commit comments