redhat-gpst / rosa-fsx-lab-guide

1 stars 3 forks source link

Change default StorageClass from from GP3 to trident-csi #7

Open fabian-born opened 5 months ago

fabian-born commented 5 months ago

Change Storage Class: Make Trident as default

    oc patch storageclass gp3 -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"false"}}}'
    oc patch storageclass trident-csi -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'

or


apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: trident-csi
  annotations:
    storageclass.kubernetes.io/is-default-class: "true"
provisioner: csi.trident.netapp.io
parameters:
  backendType: "ontap-nas"
  fsType: "ext4"
allowVolumeExpansion: True
reclaimPolicy: Retain
fabian-born commented 5 months ago

https://github.com/redhat-gpst/rosa-fsx-lab-guide/blob/main/fsx/storage-class-csi-nas.yml