4 name: {{ include "common.fullname" . }}
5 namespace: {{ include "common.namespace" . }}
7 app: {{ include "common.name" . }}
8 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
9 release: {{ include "common.release" . }}
10 heritage: {{ .Release.Service }}
14 app: {{ include "common.name" . }}
15 replicas: {{ .Values.replicaCount }}
19 app: {{ include "common.name" . }}
20 release: {{ include "common.release" . }}
27 - {{ include "common.release" . }}-galera-config
33 fieldPath: metadata.namespace
34 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
35 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
36 name: {{ include "common.name" . }}-readiness
41 - "export SQL_PASSWORD_BASE64=`echo -n ${SQL_PASSWORD} | base64`; cd /config-input && for PFILE in `ls -1 .`; do envsubst <${PFILE} >/config/${PFILE}; done"
43 - name: RESTSERVER_USER
44 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "restserver-creds" "key" "login") | indent 10 }}
45 - name: RESTSERVER_PASSWORD
46 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "restserver-creds" "key" "password") | indent 10 }}
48 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "api-creds" "key" "login") | indent 10 }}
50 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "api-creds" "key" "password") | indent 10 }}
52 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "login") | indent 10 }}
54 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "password") | indent 10 }}
56 - mountPath: /config-input
59 name: pdpxconfig-processed
60 image: "{{ .Values.global.envsubstImage }}"
61 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
62 name: {{ include "common.name" . }}-update-config
64 - name: {{ include "common.name" . }}
65 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
66 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
67 command: ["/opt/app/policy/pdpx/bin/policy-pdpx.sh"]
68 args: ["/opt/app/policy/pdpx/etc/mounted/config.json"]
70 - containerPort: {{ .Values.service.internalPort }}
71 # disable liveness probe when breakpoints set in debugger
72 # so K8s doesn't restart unresponsive container
73 {{- if eq .Values.liveness.enabled true }}
76 port: {{ .Values.service.internalPort }}
77 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
78 periodSeconds: {{ .Values.liveness.periodSeconds }}
82 port: {{ .Values.service.internalPort }}
83 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
84 periodSeconds: {{ .Values.readiness.periodSeconds }}
86 - mountPath: /etc/localtime
89 - mountPath: /opt/app/policy/pdpx/etc/mounted
90 name: pdpxconfig-processed
94 {{ include "common.resources" . | indent 12 }}
95 {{- if .Values.nodeSelector }}
97 {{ toYaml .Values.nodeSelector | indent 10 }}
99 {{- if .Values.affinity }}
101 {{ toYaml .Values.affinity | indent 10 }}
109 name: {{ include "common.fullname" . }}-configmap
111 - name: pdpxconfig-processed
115 - name: "{{ include "common.namespace" . }}-docker-registry-key"