Difference between revisions of "Kind: StorageClass"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(5 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
  ~> cat standard.yaml
 
  ~> cat standard.yaml
  
  apiVersion: storage.k8s.io/v1
+
  [[apiVersion]]: storage.k8s.io/v1
  [[kind:]] StorageClass
+
  [[kind:]] [[StorageClass]]
 
  metadata:
 
  metadata:
 
   name: standard
 
   name: standard
Line 12: Line 12:
 
  [[allowVolumeExpansion]]: true
 
  [[allowVolumeExpansion]]: true
 
  reclaimPolicy: Delete
 
  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 ==
 
== Related ==
Line 17: Line 85:
 
  [[kind: PersistentVolume]]
 
  [[kind: PersistentVolume]]
 
  [[kubectl describe storageclass]]
 
  [[kubectl describe storageclass]]
 +
[[kubectl describe sc standard]]
 
  [[kubernetes.io/aws-ebs]]
 
  [[kubernetes.io/aws-ebs]]
 +
[[ebs-sc]]
 +
[[efs-sc]]
  
 
== See also ==
 
== See also ==

Latest revision as of 13:49, 8 March 2023

~> 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: