1 apiVersion: extensions/v1beta1
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 }}
12 replicas: {{ .Values.replicaCount }}
16 app: {{ include "common.name" . }}
17 release: {{ include "common.release" . }}
24 - {{ .Values.global.mariadb.service.name }}
30 fieldPath: metadata.namespace
31 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
32 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
33 name: {{ include "common.name" . }}-readiness
39 - "export SQL_PASSWORD_BASE64=`echo -n ${SQL_PASSWORD} | base64`; cd /config-input && for PFILE in `ls -1 .`; do envsubst <${PFILE} >/config/${PFILE}; done"
42 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "login") | indent 10 }}
44 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "password") | indent 10 }}
45 - name: RESTSERVER_USER
46 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "restserver-secret" "key" "login") | indent 10 }}
47 - name: RESTSERVER_PASSWORD
48 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "restserver-secret" "key" "password") | indent 10 }}
50 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "api-secret" "key" "login") | indent 10 }}
52 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "api-secret" "key" "password") | indent 10 }}
53 - name: DISTRIBUTION_USER
54 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "distribution-secret" "key" "login") | indent 10 }}
55 - name: DISTRIBUTION_PASSWORD
56 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "distribution-secret" "key" "password") | indent 10 }}
58 - mountPath: /config-input
61 name: papconfig-processed
62 image: "{{ .Values.global.envsubstImage }}"
63 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
64 name: {{ include "common.name" . }}-update-config
66 - name: {{ include "common.name" . }}
67 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
68 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
69 command: ["/opt/app/policy/pap/bin/policy-pap.sh"]
70 args: ["/opt/app/policy/pap/etc/mounted/config.json"]
72 - containerPort: {{ .Values.service.internalPort }}
73 # disable liveness probe when breakpoints set in debugger
74 # so K8s doesn't restart unresponsive container
75 {{- if eq .Values.liveness.enabled true }}
78 port: {{ .Values.service.internalPort }}
79 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
80 periodSeconds: {{ .Values.liveness.periodSeconds }}
84 port: {{ .Values.service.internalPort }}
85 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
86 periodSeconds: {{ .Values.readiness.periodSeconds }}
88 - mountPath: /etc/localtime
91 - mountPath: /opt/app/policy/pap/etc/mounted
92 name: papconfig-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: papconfig-processed
115 - name: "{{ include "common.namespace" . }}-docker-registry-key"