github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/deploy/apecloud-mysql-cluster/templates/cluster.yaml (about) 1 apiVersion: apps.kubeblocks.io/v1alpha1 2 kind: Cluster 3 metadata: 4 name: {{ include "kblib.clusterName" . }} 5 namespace: {{ .Release.Namespace }} 6 labels: {{ include "kblib.clusterLabels" . | nindent 4 }} 7 {{- if and (eq .Values.mode "raftGroup") .Values.proxyEnabled }} 8 annotations: 9 kubeblocks.io/extra-env: '{"KB_PROXY_ENABLED":"on"}' 10 {{- end }} 11 spec: 12 clusterVersionRef: {{ .Values.version }} 13 terminationPolicy: {{ .Values.extra.terminationPolicy }} 14 {{- include "kblib.affinity" . | indent 2 }} 15 clusterDefinitionRef: apecloud-mysql # ref clusterdefinition.name 16 componentSpecs: 17 - name: mysql 18 componentDefRef: mysql # ref clusterdefinition componentDefs.name 19 {{- include "kblib.componentMonitor" . | indent 6 }} 20 replicas: {{ include "apecloud-mysql-cluster.replicas" . }} 21 enabledLogs: 22 - slow 23 - error 24 serviceAccountName: {{ include "kblib.serviceAccountName" . }} 25 {{- include "kblib.componentResources" . | indent 6 }} 26 {{- include "kblib.componentStorages" . | indent 6 }} 27 {{- include "kblib.componentServices" . | indent 6 }} 28 {{- if and (eq .Values.mode "raftGroup") .Values.proxyEnabled }} 29 {{- include "apecloud-mysql-cluster.proxyComponents" . | indent 4 }} 30 {{- end }}