diff options
author | Mandeep Khinda <Mandeep.Khinda@amdocs.com> | 2017-12-15 14:42:36 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-12-15 14:42:36 +0000 |
commit | c32a6d50b4c2f9d890f06d6f711863f8f4a26bdb (patch) | |
tree | e69ae9dbe77531712c6819a71aea8ac0e59ac8d6 /kubernetes/policy/templates/dep-nexus.yaml | |
parent | 6e520441dd96cfeaa81d397758df0739d4d36a4f (diff) | |
parent | 86243b7899c5903c92cb24ff4914da436b528920 (diff) |
Merge "Update annotations to spec for policy"
Diffstat (limited to 'kubernetes/policy/templates/dep-nexus.yaml')
-rw-r--r-- | kubernetes/policy/templates/dep-nexus.yaml | 43 |
1 files changed, 16 insertions, 27 deletions
diff --git a/kubernetes/policy/templates/dep-nexus.yaml b/kubernetes/policy/templates/dep-nexus.yaml index 07cd334879..4adb05f630 100644 --- a/kubernetes/policy/templates/dep-nexus.yaml +++ b/kubernetes/policy/templates/dep-nexus.yaml @@ -13,33 +13,22 @@ spec: labels: app: nexus name: nexus - annotations: - pod.beta.kubernetes.io/init-containers: '[ - { - "args": [ - "--container-name", - "mariadb" - ], - "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": "nexus-readiness" - } - ]' spec: + initContainers: + - command: + - /root/ready.py + args: + - --container-name + - mariadb + env: + - name: NAMESPACE + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.namespace + image: "{{ .Values.image.readiness }}:{{ .Values.image.readinessVersion }}" + imagePullPolicy: {{ .Values.pullPolicy }} + name: nexus-readiness containers: - image: "{{ .Values.image.policyNexus }}:{{ .Values.image.policyNexusVersion }}" imagePullPolicy: {{ .Values.pullPolicy }} @@ -54,4 +43,4 @@ spec: path: /etc/localtime imagePullSecrets: - name: "{{ .Values.nsPrefix }}-docker-registry-key" -#{{ end }}
\ No newline at end of file +#{{ end }} |