From 3ce18d5d0ee8b81861dd9f664a3bab171fb0d311 Mon Sep 17 00:00:00 2001 From: weizhichen Date: Thu, 20 Jun 2024 09:11:55 +0000 Subject: [PATCH] chore: fix workload identity doc --- docs/workload-identity-static-pv-mount.md | 95 ++++++++++++++++++++++- 1 file changed, 94 insertions(+), 1 deletion(-) diff --git a/docs/workload-identity-static-pv-mount.md b/docs/workload-identity-static-pv-mount.md index 6a019a0bd8..2879464b29 100644 --- a/docs/workload-identity-static-pv-mount.md +++ b/docs/workload-identity-static-pv-mount.md @@ -59,7 +59,100 @@ az identity federated-credential create --name $FEDERATED_IDENTITY_NAME \ --subject system:serviceaccount:${SERVICE_ACCOUNT_NAMESPACE}:${SERVICE_ACCOUNT_NAME} ``` -## Pod with ephemeral inline volume +## option#1: static provision with PV +``` +cat <> /mnt/azurefile/outfile; sleep 1; done + volumeMounts: + - name: azurefile + mountPath: "/mnt/azurefile" + readOnly: false + volumes: + - name: azurefile + persistentVolumeClaim: + claimName: pvc-azurefile + strategy: + rollingUpdate: + maxSurge: 0 + maxUnavailable: 1 + type: RollingUpdate +EOF +``` + +## option#2: Pod with ephemeral inline volume ``` cat <