# ------------------------------------------------ # Exaxscaler CSI Driver - Persistent Volume Claim # ------------------------------------------------ apiVersion: v1 kind: PersistentVolumeClaim metadata: name: exascaler-csi-file-driver-pvc spec: storageClassName: nfs-client accessModes: - ReadWriteMany resources: requests: storage: 1Gi --- # --------- # Nginx pod # --------- apiVersion: v1 kind: Pod metadata: name: nginx-dynamic-volume spec: topologySpreadConstraints: - maxSkew: 1 topologyKey: topology.exa.csi.ddn.com/zone whenUnsatisfiable: DoNotSchedule labelSelector: matchLabels: topology.exa.csi.ddn.com/zone: zone-1 securityContext: runAsUser: 1001 # runAsUser: 1002 # fsGroup: 1001 containers: - image: nginxinc/nginx-unprivileged imagePullPolicy: IfNotPresent name: nginx ports: - containerPort: 80 protocol: TCP volumeMounts: - mountPath: /data name: exascaler-csi-file-driver-data volumes: - name: exascaler-csi-file-driver-data persistentVolumeClaim: claimName: exascaler-csi-file-driver-pvc readOnly: false