example: Update `csi/example_pv.yaml`
The pod name `volume-test` is already used in `pvc.yaml`.
Need to set `storageClassName`.
@@ -9,6 +9,7 @@ spec:
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Delete
+ storageClassName: longhorn
csi:
driver: driver.longhorn.io
fsType: ext4
@@ -28,16 +29,17 @@ spec:
requests:
storage: 2Gi
volumeName: longhorn-vol-pv
+ storageClassName: longhorn
---
apiVersion: v1
kind: Pod
metadata:
- name: volume-test
+ name: volume-pv-test
namespace: default
spec:
restartPolicy: Always
containers:
- - name: volume-test
+ - name: volume-pv-test
image: nginx:stable-alpine
imagePullPolicy: IfNotPresent
livenessProbe:
