[root@jh-rh dev-opencip]# oc patch storageclass nfs-csi -p '{"metadata": {"annotations": {"storageclass.kubernetes.io/is-default-class": "true"}}}'
storageclass.storage.k8s.io/nfs-csi patched
[root@jh-rh dev-opencip]#
[root@jh-rh dev-opencip]# oc get sc
NAME                PROVISIONER                    RECLAIMPOLICY   VOLUMEBINDINGMODE      ALLOWVOLUMEEXPANSION   AGE
local-sc-alert      kubernetes.io/no-provisioner   Delete          WaitForFirstConsumer   false                  94d
local-sc-logs       kubernetes.io/no-provisioner   Delete          WaitForFirstConsumer   false                  94d
local-sc-prome      kubernetes.io/no-provisioner   Delete          WaitForFirstConsumer   false                  94d
nfs-csi (default)   nfs.csi.k8s.io                 Delete          Immediate              false                  88d
[root@jh-rh dev-opencip]#

Leave a Reply

Your email address will not be published. Required fields are marked *