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
# make sure volumeid is unique for every storage blob container in the cluster
84
-
# the # character is reserved for internal use, the / character is not allowed
85
-
volumeHandle: unique_volume_id
86
-
volumeAttributes:
87
-
storageaccount: $ACCOUNT # required
88
-
containerName: $CONTAINER # required
89
-
clientID: $USER_ASSIGNED_CLIENT_ID # required
90
-
resourcegroup: $STORAGE_RESOURCE_GROUP # optional, specified when the storage account is not under AKS node resource group(which is prefixed with "MC_")
91
-
# tenantID: $IDENTITY_TENANT #optional, only specified when workload identity and AKS cluster are in different tenant
92
-
# subscriptionid: $SUBSCRIPTION #optional, only specified when workload identity and AKS cluster are in different subscription
93
-
---
94
-
apiVersion: apps/v1
95
-
kind: StatefulSet
96
-
metadata:
97
-
name: statefulset-blob
98
-
labels:
99
-
app: nginx
100
-
spec:
101
-
serviceName: statefulset-blob
102
-
replicas: 1
103
-
template:
104
-
metadata:
105
-
labels:
106
-
app: nginx
107
-
spec:
108
-
serviceAccountName: $SERVICE_ACCOUNT_NAME #required, Pod does not use this service account has no permission to mount the volume
109
-
nodeSelector:
110
-
"kubernetes.io/os": linux
111
-
containers:
112
-
- name: statefulset-blob
113
-
image: mcr.microsoft.com/oss/nginx/nginx:1.19.5
114
-
command:
115
-
- "/bin/bash"
116
-
- "-c"
117
-
- set -euo pipefail; while true; do echo $(date) >> /mnt/blob/outfile; sleep 1; done
0 commit comments