I tried to define a PVC:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: master-pvc
spec:
accessModes:
- ReadWriteOnce
- ReadOnlyMany
resources:
requests:
storage: 1Gi
The nodes that need readonly access should define:
volumeMounts:
- name: mastervol
mountPath: /data/master/
readOnly: true
The master that needs to read and write, should define:
volumeMounts:
- name: mastervol
mountPath: /data/master/
Is this a valid way to achieve what i want?