kind: StorageClass

From wikieduonline
Jump to navigation Jump to search

~> cat standard.yaml
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: standard
parameters:
  type: pd-standard
provisioner: kubernetes.io/gce-pd
allowVolumeExpansion: true
reclaimPolicy: Delete


apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: standard
  uid: 123456789-f232-11e8-9149-123456789
  resourceVersion: '276'
  creationTimestamp: '2018-11-27T10:50:10Z'
  labels:
    addonmanager.kubernetes.io/mode: EnsureExists
    kubernetes.io/cluster-service: 'true'
  annotations:
    storageclass.beta.kubernetes.io/is-default-class: 'true'
  selfLink: /apis/storage.k8s.io/v1/storageclasses/standard
allowedTopologies: []
mountOptions: []
parameters:
  type: pd-standard
provisioner: kubernetes.io/gce-pd
reclaimPolicy: Delete
volumeBindingMode: Immediate
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: standard
  uid: a14ec3c7-6bd2-4643-a439-12345678
  resourceVersion: '357'
  creationTimestamp: '2021-08-03T08:44:18Z'
  labels:
    addonmanager.kubernetes.io/mode: EnsureExists
  annotations:
    storageclass.kubernetes.io/is-default-class: 'true'
   managedFields:
    - manager: kubectl-create
      operation: Update
      apiVersion: storage.k8s.io/v1
      time: '2021-08-03T08:44:18Z'
      fieldsType: FieldsV1
      fieldsV1:
        f:allowVolumeExpansion: {}
        f:metadata:
          f:annotations:
            .: {}
            f:storageclass.kubernetes.io/is-default-class: {}
          f:labels:
            .: {}
            f:addonmanager.kubernetes.io/mode: {}
        f:parameters:
          .: {}
          f:type: {}
        f:provisioner: {}
        f:reclaimPolicy: {}
        f:volumeBindingMode: {}
  selfLink: /apis/storage.k8s.io/v1/storageclasses/standard
allowVolumeExpansion: true 
allowedTopologies: []
mountOptions: []
parameters:
  type: pd-standard
provisioner: kubernetes.io/gce-pd
reclaimPolicy: Delete
volumeBindingMode: Immediate



Related[edit]

kubectl edit pvc
kind: PersistentVolume
kubectl describe storageclass
kubectl describe sc standard
kubernetes.io/aws-ebs
ebs-sc
efs-sc

See also[edit]

Advertising: