Hi,
I created a pvc for Longhorn with ReadWriteOnce.
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: rclone-pvc
namespace: may-la
spec:
accessModes:
- ReadWriteOnce
storageClassName: longhorn-crypto-global
resources:
requests:
storage: 1Gi
Then I have 2 pods:
1st pod: uses the pvc “normaly” to write to it.
2ns pod: mounts it read only:
volumeMounts:
- name: rclone-data
mountPath: /usr/share/nginx
readOnly: true
volumes:
- name: rclone-data
persistentVolumeClaim:
claimName: rclone-pvc
Does that work with Longhorn? Is it the right way to do?