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: {{ .Release.Name }}
10 heritage: {{ .Release.Service }}
12 replicas: {{ .Values.replicaCount }}
16 app: {{ include "common.name" . }}
17 release: {{ .Release.Name }}
20 - name: {{ include "common.name" . }}
21 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
22 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
23 command: ["/opt/app/policy/pdpx/bin/policy-pdpx.sh"]
24 args: ["/opt/app/policy/pdpx/etc/mounted/config.json"]
26 - containerPort: {{ .Values.service.internalPort }}
27 # disable liveness probe when breakpoints set in debugger
28 # so K8s doesn't restart unresponsive container
29 {{- if eq .Values.liveness.enabled true }}
32 port: {{ .Values.service.internalPort }}
33 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
34 periodSeconds: {{ .Values.liveness.periodSeconds }}
38 port: {{ .Values.service.internalPort }}
39 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
40 periodSeconds: {{ .Values.readiness.periodSeconds }}
42 - mountPath: /etc/localtime
45 - mountPath: /opt/app/policy/pdpx/etc/mounted
48 {{ include "common.resources" . | indent 12 }}
49 {{- if .Values.nodeSelector }}
51 {{ toYaml .Values.nodeSelector | indent 10 }}
53 {{- if .Values.affinity }}
55 {{ toYaml .Values.affinity | indent 10 }}
63 name: {{ include "common.fullname" . }}-configmap
66 - name: "{{ include "common.namespace" . }}-docker-registry-key"