Skip to content

Instantly share code, notes, and snippets.

@vharsh
Created July 10, 2020 11:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vharsh/6aee02d078be03764a2361fb9e7e035f to your computer and use it in GitHub Desktop.
Save vharsh/6aee02d078be03764a2361fb9e7e035f to your computer and use it in GitHub Desktop.
SC examples
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
annotations:
cas.openebs.io/config: |
- name: StorageType
value: "device"
openebs.io/cas-type: local
creationTimestamp: "2020-04-27T10:19:33Z"
name: openebs-device
resourceVersion: "2066744"
selfLink: /apis/storage.k8s.io/v1/storageclasses/openebs-device
uid: 255cc484-c097-419f-a21c-b396c9c5b582
provisioner: openebs.io/local
reclaimPolicy: Delete
volumeBindingMode: WaitForFirstConsumer
kind: StorageClass
metadata:
annotations:
cas.openebs.io/config: |
- name: ReplicaCount
value: "3"
- name: StoragePool
value: default
#- name: TargetResourceLimits
# value: |-
# memory: 1Gi
# cpu: 100m
#- name: AuxResourceLimits
# value: |-
# memory: 0.5Gi
# cpu: 50m
#- name: ReplicaResourceLimits
# value: |-
# memory: 2Gi
openebs.io/cas-type: jiva
creationTimestamp: "2020-04-27T10:19:33Z"
name: openebs-jiva-default
resourceVersion: "2066678"
selfLink: /apis/storage.k8s.io/v1/storageclasses/openebs-jiva-default
uid: 091e562d-1f13-4f13-879b-dcce4c26c2b7
provisioner: openebs.io/provisioner-iscsi
reclaimPolicy: Delete
volumeBindingMode: Immediate
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"allowVolumeExpansion":true,"apiVersion":"storage.k8s.io/v1","kind":"StorageClass","metadata":{"annotations":{},"name":"od-es-openebs-cstor-disk"},"parameters":{"cas-type":"cstor","cstorPoolCluster":"od-es-cstor-disk-pool","replicaCount":"1"},"provisioner":"cstor.csi.openebs.io"}
creationTimestamp: "2020-05-15T15:10:15Z"
name: od-es-openebs-cstor-disk
resourceVersion: "8763827"
selfLink: /apis/storage.k8s.io/v1/storageclasses/od-es-openebs-cstor-disk
uid: 2490acac-295b-4397-b0ac-09dd76eb226a
parameters:
cas-type: cstor
cstorPoolCluster: od-es-cstor-disk-pool
replicaCount: "1"
provisioner: cstor.csi.openebs.io
reclaimPolicy: Delete
volumeBindingMode: Immediate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment