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 - {{ include "common.release" . }}-galera-config
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
35 - name: {{ include "common.name" . }}
36 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
37 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
38 command: ["/opt/app/policy/pdpx/bin/policy-pdpx.sh"]
39 args: ["/opt/app/policy/pdpx/etc/mounted/config.json"]
42 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "login") | indent 12 }}
44 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "password") | indent 12 }}
46 - containerPort: {{ .Values.service.internalPort }}
47 # disable liveness probe when breakpoints set in debugger
48 # so K8s doesn't restart unresponsive container
49 {{- if eq .Values.liveness.enabled true }}
52 port: {{ .Values.service.internalPort }}
53 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
54 periodSeconds: {{ .Values.liveness.periodSeconds }}
58 port: {{ .Values.service.internalPort }}
59 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
60 periodSeconds: {{ .Values.readiness.periodSeconds }}
62 - mountPath: /etc/localtime
65 - mountPath: /opt/app/policy/pdpx/etc/mounted
68 {{ include "common.resources" . | indent 12 }}
69 {{- if .Values.nodeSelector }}
71 {{ toYaml .Values.nodeSelector | indent 10 }}
73 {{- if .Values.affinity }}
75 {{ toYaml .Values.affinity | indent 10 }}
83 name: {{ include "common.fullname" . }}-configmap
86 - name: "{{ include "common.namespace" . }}-docker-registry-key"