53 lines
1.5 KiB
YAML
53 lines
1.5 KiB
YAML
{{- if .Values.cluster.create }}
|
|
|
|
apiVersion: storageos.com/v1
|
|
kind: StorageOSCluster
|
|
metadata:
|
|
name: {{ .Values.cluster.name }}
|
|
namespace: {{ .Values.cluster.namespace }}
|
|
spec:
|
|
secretRefName: {{ .Values.cluster.secretRefName }}
|
|
disableTelemetry: {{ .Values.cluster.disableTelemetry }}
|
|
storageClassName: {{ .Values.cluster.storageClassName }}
|
|
|
|
|
|
{{- if .Values.k8sDistro }}
|
|
k8sDistro: {{ .Values.k8sDistro }}
|
|
{{- end }}
|
|
|
|
{{- if .Values.cluster.sharedDir }}
|
|
sharedDir: {{ .Values.cluster.sharedDir }}
|
|
{{- end }}
|
|
|
|
kvBackend:
|
|
address: {{ required "kv backend address must be set" .Values.cluster.kvBackend.address }}
|
|
backend: {{ .Values.cluster.kvBackend.backend }}
|
|
{{- if .Values.cluster.kvBackend.tlsSecretName }}
|
|
tlsEtcdSecretRefName: {{ .Values.cluster.kvBackend.tlsSecretName }}
|
|
{{- end }}
|
|
{{- if .Values.cluster.kvBackend.tlsSecretNamespace }}
|
|
tlsEtcdSecretRefNamespace: {{ .Values.cluster.kvBackend.tlsSecretNamespace }}
|
|
{{- end }}
|
|
|
|
resources:
|
|
{{ toYaml .Values.cluster.resources | indent 4 }}
|
|
|
|
{{- if .Values.cluster.nodeSelectorTerm.key }}
|
|
nodeSelectorTerms:
|
|
- matchExpressions:
|
|
- key: {{ .Values.cluster.nodeSelectorTerm.key }}
|
|
operator: In
|
|
values:
|
|
- "{{ .Values.cluster.nodeSelectorTerm.value }}"
|
|
{{- end }}
|
|
|
|
{{- if .Values.cluster.toleration.key }}
|
|
tolerations:
|
|
- key: {{ .Values.cluster.toleration.key }}
|
|
operator: "Equal"
|
|
value: {{ .Values.cluster.toleration.value }}
|
|
effect: "NoSchedule"
|
|
{{- end }}
|
|
|
|
{{- end }}
|