aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/policy/templates/dep-pdp.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/policy/templates/dep-pdp.yaml')
-rw-r--r--kubernetes/policy/templates/dep-pdp.yaml51
1 files changed, 20 insertions, 31 deletions
diff --git a/kubernetes/policy/templates/dep-pdp.yaml b/kubernetes/policy/templates/dep-pdp.yaml
index 6cc442b417..3763b95bb2 100644
--- a/kubernetes/policy/templates/dep-pdp.yaml
+++ b/kubernetes/policy/templates/dep-pdp.yaml
@@ -14,37 +14,26 @@ spec:
labels:
app: pdp
name: pdp
- annotations:
- pod.beta.kubernetes.io/init-containers: '[
- {
- "args": [
- "--container-name",
- "mariadb",
- "--container-name",
- "nexus",
- "--container-name",
- "pap"
- ],
- "command": [
- "/root/ready.py"
- ],
- "env": [
- {
- "name": "NAMESPACE",
- "valueFrom": {
- "fieldRef": {
- "apiVersion": "v1",
- "fieldPath": "metadata.namespace"
- }
- }
- }
- ],
- "image": "{{ .Values.image.readiness }}:{{ .Values.image.readinessVersion }}",
- "imagePullPolicy": "{{ .Values.pullPolicy }}",
- "name": "pdp-readiness"
- }
- ]'
spec:
+ initContainers:
+ - command:
+ - /root/ready.py
+ args:
+ - --container-name
+ - mariadb
+ - --container-name
+ - nexus
+ - --container-name
+ - pap
+ env:
+ - name: NAMESPACE
+ valueFrom:
+ fieldRef:
+ apiVersion: v1
+ fieldPath: metadata.namespace
+ image: "{{ .Values.image.readiness }}:{{ .Values.image.readinessVersion }}"
+ imagePullPolicy: {{ .Values.pullPolicy }}
+ name: pdp-readiness
containers:
- command:
- /bin/bash
@@ -103,4 +92,4 @@ spec:
path: /dockerdata-nfs/{{ .Values.nsPrefix }}/policy/opt/policy/config/pe/
imagePullSecrets:
- name: "{{ .Values.nsPrefix }}-docker-registry-key"
-#{{ end }} \ No newline at end of file
+#{{ end }}