Compare commits
6 Commits
postgres-c
...
mysql-clus
Author | SHA1 | Date | |
---|---|---|---|
f1b4020287 | |||
969357a664 | |||
5685190e43 | |||
5e88f116fc | |||
f99ebfaa44 | |||
64e3612762 |
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: mysql-cluster
|
name: mysql-cluster
|
||||||
version: 0.2.1
|
version: 0.2.4
|
||||||
description: Chart for a mysql cluster
|
description: Chart for a mysql cluster
|
||||||
keywords:
|
keywords:
|
||||||
- database
|
- database
|
||||||
|
@@ -21,31 +21,31 @@ spec:
|
|||||||
version: {{ .Values.cluster.image.version }}
|
version: {{ .Values.cluster.image.version }}
|
||||||
tlsUseSelfSigned: true
|
tlsUseSelfSigned: true
|
||||||
secretName: {{ .Values.cluster.exisitingCredentialsSecret }}
|
secretName: {{ .Values.cluster.exisitingCredentialsSecret }}
|
||||||
|
{{- if .Values.cluster.podSpec }}
|
||||||
podSpec:
|
podSpec:
|
||||||
{{- with .Values.cluster.podSpec }}
|
{{ toYaml .Values.cluster.podSpec | nindent 4 }}
|
||||||
{{ toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.cluster.podAnnotations }}
|
||||||
podAnnotations:
|
podAnnotations:
|
||||||
{{- with .Values.cluster.podAnnotations }}
|
{{ toYaml .Values.cluster.podAnnotations | nindent 4 }}
|
||||||
{{ toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.cluster.podLabels }}
|
||||||
podLabels:
|
podLabels:
|
||||||
{{- with .Values.cluster.podLabels }}
|
{{ toYaml .Values.cluster.podLabels | nindent 4 }}
|
||||||
{{ toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
router:
|
router:
|
||||||
instances: {{ required "router.instances is required" .Values.cluster.router.instances }}
|
instances: {{ required "router.instances is required" .Values.cluster.router.instances }}
|
||||||
|
{{- if .Values.cluster.router.podSpec }}
|
||||||
podSpec:
|
podSpec:
|
||||||
{{- with .Values.cluster.router.podSpec }}
|
{{- toYaml .Values.cluster.router.podSpec | nindent 6 }}
|
||||||
{{- toYaml . | nindent 6 }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.cluster.router.podAnnotations }}
|
||||||
podAnnotations:
|
podAnnotations:
|
||||||
{{- with .Values.cluster.router.podAnnotations }}
|
{{- toYaml .Values.cluster.router.podAnnotations | nindent 6 }}
|
||||||
{{- toYaml . | nindent 6 }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.cluster.router.podLabels }}
|
||||||
podLabels:
|
podLabels:
|
||||||
{{- with .Values.cluster.router.podLabels }}
|
{{- toYaml .Values.cluster.router.podLabels | nindent 6 }}
|
||||||
{{- toYaml . | nindent 6 }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
tlsSecretName: {{ include "cluster.name" . }}-router-tls
|
tlsSecretName: {{ include "cluster.name" . }}-router-tls
|
||||||
logs:
|
logs:
|
||||||
|
@@ -40,7 +40,6 @@ cluster:
|
|||||||
|
|
||||||
logs:
|
logs:
|
||||||
error:
|
error:
|
||||||
enabled: true
|
|
||||||
collect: false
|
collect: false
|
||||||
general:
|
general:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: postgres-cluster
|
name: postgres-cluster
|
||||||
version: 3.3.0
|
version: 3.6.0
|
||||||
description: Chart for cloudnative-pg cluster
|
description: Chart for cloudnative-pg cluster
|
||||||
keywords:
|
keywords:
|
||||||
- database
|
- database
|
||||||
|
@@ -21,12 +21,6 @@ bootstrap:
|
|||||||
{{- printf "- %s" . | nindent 6 }}
|
{{- printf "- %s" . | nindent 6 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
postInitSQL:
|
|
||||||
{{- with .Values.cluster.initdb }}
|
|
||||||
{{- range .postInitSQL }}
|
|
||||||
{{- printf "- %s" . | nindent 6 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- else if eq .Values.mode "replica" }}
|
{{- else if eq .Values.mode "replica" }}
|
||||||
initdb:
|
initdb:
|
||||||
import:
|
import:
|
||||||
|
@@ -68,7 +68,7 @@ cluster:
|
|||||||
podMonitor:
|
podMonitor:
|
||||||
enabled: true
|
enabled: true
|
||||||
prometheusRule:
|
prometheusRule:
|
||||||
enabled: true
|
enabled: false
|
||||||
excludeRules: []
|
excludeRules: []
|
||||||
|
|
||||||
# See: https://cloudnative-pg.io/documentation/current/cloudnative-pg.v1/#postgresql-cnpg-io-v1-PostgresConfiguration
|
# See: https://cloudnative-pg.io/documentation/current/cloudnative-pg.v1/#postgresql-cnpg-io-v1-PostgresConfiguration
|
||||||
@@ -81,8 +81,7 @@ cluster:
|
|||||||
# BootstrapInitDB is the configuration of the bootstrap process when initdb is used.
|
# BootstrapInitDB is the configuration of the bootstrap process when initdb is used.
|
||||||
# See: https://cloudnative-pg.io/documentation/current/bootstrap/
|
# See: https://cloudnative-pg.io/documentation/current/bootstrap/
|
||||||
# See: https://cloudnative-pg.io/documentation/current/cloudnative-pg.v1/#postgresql-cnpg-io-v1-bootstrapinitdb
|
# See: https://cloudnative-pg.io/documentation/current/cloudnative-pg.v1/#postgresql-cnpg-io-v1-bootstrapinitdb
|
||||||
initdb:
|
initdb: {}
|
||||||
{}
|
|
||||||
# database: app
|
# database: app
|
||||||
# owner: app
|
# owner: app
|
||||||
# secret: "" # Name of the secret containing the initial credentials for the owner of the user database. If empty a new secret will be created from scratch
|
# secret: "" # Name of the secret containing the initial credentials for the owner of the user database. If empty a new secret will be created from scratch
|
||||||
|
Reference in New Issue
Block a user