github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/deploy/redis-cluster/templates/cluster.yaml (about) 1 {{- include "kblib.clusterCommon" . }} 2 clusterDefinitionRef: redis # ref clusterDefinition.name 3 componentSpecs: 4 - name: redis 5 componentDefRef: redis # ref clusterDefinition componentDefs.name 6 {{- include "kblib.componentMonitor" . | indent 6 }} 7 {{- include "redis-cluster.replicaCount" . | indent 6 }} 8 enabledLogs: 9 - running 10 serviceAccountName: {{ include "kblib.serviceAccountName" . }} 11 switchPolicy: 12 type: Noop 13 {{- include "kblib.componentResources" . | indent 6 }} 14 {{- include "kblib.componentStorages" . | indent 6 }} 15 {{- include "kblib.componentServices" . | indent 6 }} 16 17 {{- if eq .Values.mode "replication" }} 18 {{- include "redis-cluster.proxy" . | indent 4 }} 19 {{- end }} 20 21 {{- if eq .Values.mode "replication" }} 22 {{- include "redis-cluster.sentinel" . | indent 4 }} 23 {{- end }}