mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[incubator/Patroni]Patroni add consul (#13710)
* [incubator/patroni] add consul for dcs, extra env Signed-off-by: ggwpp <p.ponyanan@gmail.com> * bumped verion Signed-off-by: ggwpp <p.ponyanan@gmail.com> * correct value Signed-off-by: ggwpp <p.ponyanan@gmail.com> * Bump chart version Signed-off-by: ggwpp <p.ponyanan@gmail.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
7bae37f0c8
commit
fc3cce57ab
@@ -1,7 +1,7 @@
|
||||
apiVersion: v1
|
||||
name: patroni
|
||||
description: 'Highly available elephant herd: HA PostgreSQL cluster.'
|
||||
version: 0.13.0
|
||||
version: 0.13.1
|
||||
appVersion: 1.4-p16
|
||||
home: https://github.com/zalando/patroni
|
||||
sources:
|
||||
|
||||
@@ -77,6 +77,10 @@ The following table lists the configurable parameters of the patroni chart and t
|
||||
| `zookeeper.enable` | Using ZooKeeper as DCS | `false` |
|
||||
| `zookeeper.deployChart` | Deploy ZooKeeper chart | `false` |
|
||||
| `zookeeper.hosts` | List of ZooKeeper cluster members | `host1:port1,host2:port,etc...` |
|
||||
| `consul.enable` | Using Consul as DCS | `false` |
|
||||
| `consul.deployChart` | Deploy Consul chart | `false` |
|
||||
| `consul.host` | Host name of consul cluster | `nil` |
|
||||
| `env` | Extra custom environment variables | `{}` |
|
||||
| `walE.enable` | Use of Wal-E tool for base backup/restore | `false` |
|
||||
| `walE.scheduleCronJob` | Schedule of Wal-E backups | `00 01 * * *` |
|
||||
| `walE.retainBackups` | Number of base backups to retain | `2` |
|
||||
|
||||
@@ -5,5 +5,8 @@ dependencies:
|
||||
- name: zookeeper
|
||||
repository: https://kubernetes-charts-incubator.storage.googleapis.com/
|
||||
version: 1.0.0
|
||||
digest: sha256:b65cce5b82c3c9971b7551e923e03a9253bcb9771386086a4e75992a9682ca03
|
||||
generated: 2019-01-26T09:48:28.627975698-06:00
|
||||
- name: consul
|
||||
repository: https://kubernetes-charts.storage.googleapis.com/
|
||||
version: 3.6.1
|
||||
digest: sha256:65ce2049b946b29c3705df1c6b3df323bbaccd571b51cb3b2c4964608a1f0e37
|
||||
generated: 2019-05-13T14:05:58.771774+07:00
|
||||
|
||||
@@ -7,3 +7,7 @@ dependencies:
|
||||
version: 1.0.0
|
||||
repository: https://kubernetes-charts-incubator.storage.googleapis.com/
|
||||
condition: zookeeper.deployChart
|
||||
- name: consul
|
||||
version: 3.6.1
|
||||
repository: https://kubernetes-charts.storage.googleapis.com/
|
||||
condition: consul.deployChart
|
||||
|
||||
@@ -49,11 +49,11 @@ spec:
|
||||
value: {{ (printf "{ \"app\": \"%s\", \"release\": \"%s\" }" (include "patroni.fullname" .) .Release.Name) | quote }}
|
||||
- name: KUBERNETES_SCOPE_LABEL
|
||||
value: "app"
|
||||
{{- end }}
|
||||
{{- if .Values.kubernetes.configmaps.enable }}
|
||||
- name: KUBERNETES_USE_CONFIGMAPS
|
||||
value: "true"
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if .Values.etcd.enable }}
|
||||
{{- if .Values.etcd.deployChart }}
|
||||
- name: ETCD_DISCOVERY_DOMAIN
|
||||
@@ -70,6 +70,14 @@ spec:
|
||||
- name: ZOOKEEPER_HOSTS
|
||||
value: {{ .Values.zookeeper.hosts | quote }}
|
||||
{{- end }}
|
||||
{{- else if .Values.consul.enable }}
|
||||
{{- if .Values.consul.deployChart }}
|
||||
- name: PATRONI_CONSUL_HOST
|
||||
value: {{(printf "'%s-consul'" .Release.Name | trunc 63)}}
|
||||
{{- else }}
|
||||
- name: PATRONI_CONSUL_HOST
|
||||
value: {{ .Values.consul.host | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
- name: SCOPE
|
||||
value: {{ template "patroni.fullname" . }}
|
||||
@@ -114,6 +122,12 @@ spec:
|
||||
fieldRef:
|
||||
apiVersion: v1
|
||||
fieldPath: metadata.namespace
|
||||
{{- if .Values.env }}
|
||||
{{- range $key, $val := .Values.env }}
|
||||
- name: {{ $key | quote | upper }}
|
||||
value: {{ $val | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
ports:
|
||||
- containerPort: 8008
|
||||
- containerPort: 5432
|
||||
|
||||
@@ -36,6 +36,14 @@ zookeeper:
|
||||
# If not deploying etcd chart, fill-in list of ZooKeeper members in format:
|
||||
# 'host1:port1','host2:port2','etc...'
|
||||
hosts:
|
||||
consul:
|
||||
enable: false
|
||||
deployChart: false
|
||||
# Leave blank to use vendored consul chart
|
||||
hosts:
|
||||
|
||||
# Extra custom environment variables.
|
||||
env: {}
|
||||
|
||||
walE:
|
||||
# Specifies whether Wal-E should be enabled
|
||||
|
||||
Reference in New Issue
Block a user