3 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
5 selector: {{- include "common.selectors" . | nindent 4 }}
6 replicas: {{ .Values.replicaCount }}
8 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
15 - {{ include "common.release" . }}-policy-galera-config
21 fieldPath: metadata.namespace
22 image: {{ include "repositoryGenerator.image.readiness" . }}
23 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
24 name: {{ include "common.name" . }}-readiness
29 - "cd /config-input && for PFILE in `ls -1`; do envsubst <${PFILE} >/config/${PFILE}; done"
32 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-creds" "key" "login") | indent 12 }}
34 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-creds" "key" "password") | indent 12 }}
35 - name: RESTSERVER_USER
36 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "restserver-creds" "key" "login") | indent 12 }}
37 - name: RESTSERVER_PASSWORD
38 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "restserver-creds" "key" "password") | indent 12 }}
40 - mountPath: /config-input
43 name: apiconfig-processed
44 image: {{ include "repositoryGenerator.image.envsubst" . }}
45 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
46 name: {{ include "common.name" . }}-update-config
48 - name: {{ include "common.name" . }}
49 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
50 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
51 command: ["/opt/app/policy/api/bin/policy-api.sh"]
52 args: ["/opt/app/policy/api/etc/mounted/apiParameters.yaml"]
53 ports: {{ include "common.containerPorts" . | nindent 12 }}
54 # disable liveness probe when breakpoints set in debugger
55 # so K8s doesn't restart unresponsive container
56 {{- if eq .Values.liveness.enabled true }}
59 port: {{ .Values.service.internalPort }}
60 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
61 periodSeconds: {{ .Values.liveness.periodSeconds }}
65 path: {{ .Values.readiness.api }}
66 port: {{ .Values.service.internalPort }}
69 value: Basic {{ printf "%s:%s" .Values.restServer.user .Values.restServer.password | b64enc }}
71 successThreshold: {{ .Values.readiness.successThreshold }}
72 failureThreshold: {{ .Values.readiness.failureThreshold }}
73 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
74 periodSeconds: {{ .Values.readiness.periodSeconds }}
75 timeoutSeconds: {{ .Values.readiness.timeout }}
77 - mountPath: /etc/localtime
80 - mountPath: /opt/app/policy/api/etc/mounted
81 name: apiconfig-processed
82 resources: {{ include "common.resources" . | nindent 12 }}
83 {{- if .Values.nodeSelector }}
85 {{ toYaml .Values.nodeSelector | indent 10 }}
87 {{- if .Values.affinity }}
89 {{ toYaml .Values.affinity | indent 10 }}
91 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
98 name: {{ include "common.fullname" . }}-configmap
100 - name: apiconfig-processed
104 - name: "{{ include "common.namespace" . }}-docker-registry-key"