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
42 - "export SQL_PASSWORD_BASE64=`echo -n ${SQL_PASSWORD} | base64`; cd /config-input && for PFILE in `ls -1 .`; do envsubst <${PFILE} >/config/${PFILE}; done"
45 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-creds" "key" "login") | indent 12 }}
47 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-creds" "key" "password") | indent 12 }}
48 - name: RESTSERVER_USER
49 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "restserver-creds" "key" "login") | indent 12 }}
50 - name: RESTSERVER_PASSWORD
51 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "restserver-creds" "key" "password") | indent 12 }}
53 - mountPath: /config-input
56 name: apiconfig-processed
57 image: "{{ .Values.global.envsubstImage }}"
58 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
59 name: {{ include "common.name" . }}-update-config
62 - name: {{ include "common.name" . }}
63 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
64 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
65 command: ["/opt/app/policy/api/bin/policy-api.sh"]
66 args: ["/opt/app/policy/api/etc/mounted/config.json"]
68 - containerPort: {{ .Values.service.internalPort }}
69 # disable liveness probe when breakpoints set in debugger
70 # so K8s doesn't restart unresponsive container
71 {{- if eq .Values.liveness.enabled true }}
74 port: {{ .Values.service.internalPort }}
75 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
76 periodSeconds: {{ .Values.liveness.periodSeconds }}
80 port: {{ .Values.service.internalPort }}
81 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
82 periodSeconds: {{ .Values.readiness.periodSeconds }}
84 - mountPath: /etc/localtime
87 - mountPath: /opt/app/policy/api/etc/mounted
88 name: apiconfig-processed
90 {{ include "common.resources" . | indent 12 }}
91 {{- if .Values.nodeSelector }}
93 {{ toYaml .Values.nodeSelector | indent 10 }}
95 {{- if .Values.affinity }}
97 {{ toYaml .Values.affinity | indent 10 }}
105 name: {{ include "common.fullname" . }}-configmap
107 - name: apiconfig-processed
111 - name: "{{ include "common.namespace" . }}-docker-registry-key"