编辑sc,修改如下 注意 storageclass.kubernetes.io/is-default-class: "true" 为设置默认sc
apiVersion: v1 items: - allowVolumeExpansion: true apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: annotations: meta.helm.sh/release-name: nfs-client meta.helm.sh/release-namespace: default storageclass.kubernetes.io/is-default-class: "true" creationTimestamp: "2024-10-01T01:12:05Z" labels: app: nfs-subdir-external-provisioner app.kubernetes.io/managed-by: Helm chart: nfs-subdir-external-provisioner-4.0.18 heritage: Helm release: nfs-client name: nfs-client resourceVersion: "43504" uid: 35cab512-6fa5-483d-9f4f-e0fb02889554 parameters: archiveOnDelete: "true" provisioner: cluster.local/nfs-client-nfs-subdir-external-provisioner reclaimPolicy: Delete volumeBindingMode: Immediate kind: List metadata: resourceVersion: ""
标签:默认,client,nfs,io,provisioner,sc,k8s,true From: https://www.cnblogs.com/goPush/p/18442731