github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/deploy/oracle-mysql-cluster/templates/cluster.yaml (about) 1 apiVersion: apps.kubeblocks.io/v1alpha1 2 kind: Cluster 3 metadata: 4 name: {{ include "kblib.clusterName" . }} 5 labels: {{ include "kblib.clusterLabels" . | nindent 4 }} 6 spec: 7 clusterVersionRef: {{ .Values.version }} 8 terminationPolicy: {{ .Values.extra.terminationPolicy }} 9 {{- include "kblib.affinity" . | indent 2 }} 10 clusterDefinitionRef: oracle-mysql # ref clusterdefinition.name 11 componentSpecs: 12 - name: mysql-comp 13 componentDefRef: mysql-compdef # ref clusterdefinition componentDefs.name 14 replicas: {{ .Values.replicas }} 15 {{- include "kblib.componentStorages" . | indent 6 }} 16 {{- include "kblib.componentResources" . | indent 6 }} 17 {{- include "kblib.componentServices" . | indent 6 }}