github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/deploy/kafka/templates/storageclass.yaml (about) 1 {{- if .Values.storageClassParameters.install }} 2 apiVersion: storage.k8s.io/v1 3 kind: StorageClass 4 metadata: 5 name: {{ include "kafka.name" . }}-data-eks 6 labels: 7 {{- include "kafka.labels" . | nindent 4 }} 8 {{- if .Values.commonLabels }} 9 {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} 10 {{- end }} 11 {{- if .Values.commonAnnotations }} 12 annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} 13 {{- end }} 14 parameters: 15 # parameters references: https://github.com/kubernetes-sigs/aws-ebs-csi-driver/blob/master/docs/parameters.md 16 type: st1 17 "csi.storage.k8s.io/fstype": xfs 18 provisioner: kubernetes.io/aws-ebs 19 reclaimPolicy: Delete 20 volumeBindingMode: Immediate 21 mountOptions: {{ .Values.mountOptions | toYaml | nindent 2 }} 22 --- 23 apiVersion: storage.k8s.io/v1 24 kind: StorageClass 25 metadata: 26 name: {{ include "kafka.name" . }}-data-aks 27 labels: 28 {{- include "kafka.labels" . | nindent 4 }} 29 {{- if .Values.commonLabels }} 30 {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} 31 {{- end }} 32 {{- if .Values.commonAnnotations }} 33 annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} 34 {{- end }} 35 parameters: 36 # parameters references: https://github.com/kubernetes-sigs/azuredisk-csi-driver/blob/master/docs/driver-parameters.md 37 fsType: xfs 38 kind: managed 39 skuName: Standard_LRS 40 provisioner: kubernetes.io/azure-disk 41 reclaimPolicy: Delete 42 volumeBindingMode: Immediate 43 mountOptions: {{ .Values.mountOptions | toYaml | nindent 2 }} 44 --- 45 apiVersion: storage.k8s.io/v1 46 kind: StorageClass 47 metadata: 48 name: {{ include "kafka.name" . }}-data-gke 49 labels: 50 {{- include "kafka.labels" . | nindent 4 }} 51 {{- if .Values.commonLabels }} 52 {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} 53 {{- end }} 54 {{- if .Values.commonAnnotations }} 55 annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} 56 {{- end }} 57 parameters: 58 # parameters references: https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver#createvolume-parameters 59 type: pd-standard 60 # TODO: how-to specify FS type? 61 provisioner: kubernetes.io/gce-pd 62 reclaimPolicy: Delete 63 volumeBindingMode: Immediate 64 mountOptions: {{ .Values.mountOptions | toYaml | nindent 2 }} 65 66 --- 67 ## storage classes for meta-data 68 apiVersion: storage.k8s.io/v1 69 kind: StorageClass 70 metadata: 71 name: {{ include "kafka.name" . }}-meta-eks 72 labels: 73 {{- include "kafka.labels" . | nindent 4 }} 74 {{- if .Values.commonLabels }} 75 {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} 76 {{- end }} 77 {{- if .Values.commonAnnotations }} 78 annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} 79 {{- end }} 80 parameters: 81 # parameters references: https://github.com/kubernetes-sigs/aws-ebs-csi-driver/blob/master/docs/parameters.md 82 type: {{ .Values.storageClassParameters.metadata.awsEBSVolumeType }} # io2, io1, gp3, gp2 are all SSD variant 83 blockExpress: {{ .Values.storageClassParameters.metadata.awsEBSEnableBlockExpress | default "false" | quote }} # for io2 only 84 "csi.storage.k8s.io/fstype": xfs 85 provisioner: kubernetes.io/aws-ebs 86 reclaimPolicy: Delete 87 volumeBindingMode: Immediate 88 mountOptions: {{ .Values.mountOptions | toYaml | nindent 2 }} 89 --- 90 apiVersion: storage.k8s.io/v1 91 kind: StorageClass 92 metadata: 93 name: {{ include "kafka.name" . }}-meta-aks 94 labels: 95 {{- include "kafka.labels" . | nindent 4 }} 96 {{- if .Values.commonLabels }} 97 {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} 98 {{- end }} 99 {{- if .Values.commonAnnotations }} 100 annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} 101 {{- end }} 102 parameters: 103 # parameters references: https://github.com/kubernetes-sigs/azuredisk-csi-driver/blob/master/docs/driver-parameters.md 104 fsType: xfs 105 kind: managed 106 skuName: StandardSSD_LRS # StandardSSD_LRS, UltraSSD_LRS, StandardSSD_ZRS (ZoneRedundantStorage) 107 provisioner: kubernetes.io/azure-disk 108 reclaimPolicy: Delete 109 volumeBindingMode: Immediate 110 mountOptions: {{ .Values.mountOptions | toYaml | nindent 2 }} 111 --- 112 apiVersion: storage.k8s.io/v1 113 kind: StorageClass 114 metadata: 115 name: {{ include "kafka.name" . }}-meta-gke 116 labels: 117 {{- include "kafka.labels" . | nindent 4 }} 118 {{- if .Values.commonLabels }} 119 {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} 120 {{- end }} 121 {{- if .Values.commonAnnotations }} 122 annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} 123 {{- end }} 124 parameters: 125 # parameters references: https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver#createvolume-parameters 126 type: pd-ssd # or pd-extreme 127 # TODO: how-to specify FS type? 128 provisioner: kubernetes.io/gce-pd 129 reclaimPolicy: Delete 130 volumeBindingMode: Immediate 131 mountOptions: {{ .Values.mountOptions | toYaml | nindent 2 }} 132 {{- end }}