2 # Copyright © 2018 Amdocs, AT&T, Bell Canada
4 # # Licensed under the Apache License, Version 2.0 (the "License");
5 # # you may not use this file except in compliance with the License.
6 # # You may obtain a copy of the License at
8 # # http://www.apache.org/licenses/LICENSE-2.0
10 # # Unless required by applicable law or agreed to in writing, software
11 # # distributed under the License is distributed on an "AS IS" BASIS,
12 # # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # # See the License for the specific language governing permissions and
14 # # limitations under the License.
17 apiVersion: extensions/v1beta1
19 name: {{ include "common.fullname" . }}
20 namespace: {{ include "common.namespace" . }}
22 app: {{ include "common.name" . }}
23 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
24 release: {{ include "common.release" . }}
25 heritage: {{ .Release.Service }}
31 app: {{ include "common.name" . }}
32 release: {{ include "common.release" . }}
35 - name: {{ include "common.name" . }}-job
36 image: "{{.Values.repository}}/{{.Values.image}}"
37 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
40 mountPath: /pgconf/pgpoolconfigdir
42 - name: pgpool-pgconf-static
43 mountPath: /configdir/
50 cp /configdir/pgpool.conf /pgconf/pgpoolconfigdir/
51 cp /configdir/pool_hba.conf /pgconf/pgpoolconfigdir/
52 pg_md5 -f /pgconf/pgpoolconfigdir/pgpool.conf --md5auth --username=${PG_USER} ${PG_PASSWORD}
57 name: {{ template "common.fullname" . }}
60 value: {{ index .Values.credentials.pgusername }}
62 - image: "{{.Values.repository}}/{{.Values.image}}"
63 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
64 name: {{ include "common.name" . }}
66 - name: PG_PRIMARY_SERVICE_NAME
67 value: {{.Values.container.name.primary}}
68 - name: PG_REPLICA_SERVICE_NAME
69 value: {{.Values.container.name.replica}}
71 value: {{.Values.credentials.pgusername}}
75 name: {{ template "common.fullname" . }}
84 initialDelaySeconds: 20
89 initialDelaySeconds: 15
93 mountPath: /pgconf/pgpoolconfigdir
98 - name: pgpool-pgconf-static
100 name: {{ include "common.fullname" . }}-pgpool-configmap