add mysql ha
This commit is contained in:
25
deploy/mysql/mysql-cluster/templates/secret.yaml
Normal file
25
deploy/mysql/mysql-cluster/templates/secret.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
{{- if not .Values.customSecretName }}
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: {{ include "mysql-cluster.secretName" . }}
|
||||
labels:
|
||||
app: {{ template "mysql-cluster.name" . }}
|
||||
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
||||
release: {{ .Release.Name }}
|
||||
heritage: {{ .Release.Service }}
|
||||
{{- if .Values.appSecretLabels }}
|
||||
{{- toYaml .Values.appSecretLabels | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- if .Values.appSecretAnnotations }}
|
||||
annotations:
|
||||
{{ toYaml .Values.appSecretAnnotations }}
|
||||
{{- end }}
|
||||
type: Opaque
|
||||
data:
|
||||
ROOT_PASSWORD: {{ required ".rootPassword is missing" .Values.rootPassword | b64enc | quote }}
|
||||
USER: {{ .Values.appUser | b64enc | quote }}
|
||||
PASSWORD: {{ .Values.appPassword | b64enc | quote }}
|
||||
DATABASE: {{ .Values.appDatabase | b64enc | quote }}
|
||||
DB_CONNECT_URL: {{ include "mysql-cluster.dbConnectURL" . | b64enc | quote }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user