Hi,
Using microk8s, 1.18.6 stable. I would like to create a storage class to mimic a model on GKE:
$ helm install stable/nfs-server-provisioner
And then create a Storage class using this YAML:
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
labels:
app: nfs-server-provisioner
chart: nfs-server-provisioner-0.3.2
release: nfs
name: nfs
mountOptions:
- vers=4.1
- noatime
provisioner: cluster.local/nfs-nfs-server-provisioner
reclaimPolicy: Delete
volumeBindingMode: Immediate
QUESTION 1: Would the below YAML for microk8s support ReadWriteMany (RWM)? What should I do to match as close as possible the above config for GKE?
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: myrwm-storage
provisioner: microk8s.io/hostpath
reclaimPolicy: Delete
volumeBindingMode: WaitForFirstConsumer
QUESTION 2: How to create a ReadWriteOnce StorageClass
for microk8s?