Dusan Rozman | 75c07c4 | 2017-09-25 10:28:28 -0400 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | labels: |
| 5 | app: refrepo |
| 6 | name: refrepo |
| 7 | namespace: "{{ .Values.nsPrefix }}-vnfsdk" |
| 8 | spec: |
| 9 | selector: |
| 10 | matchLabels: |
| 11 | app: refrepo |
| 12 | template: |
| 13 | metadata: |
| 14 | labels: |
| 15 | app: refrepo |
| 16 | name: refrepo |
| 17 | annotations: |
| 18 | pod.beta.kubernetes.io/init-containers: '[ |
| 19 | { |
| 20 | "args": [ |
| 21 | "--container-name", |
| 22 | "postgres" |
| 23 | ], |
| 24 | "command": [ |
| 25 | "/root/ready.py" |
| 26 | ], |
| 27 | "env": [ |
| 28 | { |
| 29 | "name": "NAMESPACE", |
| 30 | "valueFrom": { |
| 31 | "fieldRef": { |
| 32 | "apiVersion": "v1", |
| 33 | "fieldPath": "metadata.namespace" |
| 34 | } |
| 35 | } |
| 36 | } |
| 37 | ], |
| 38 | "image": "{{ .Values.image.readiness }}:{{ .Values.image.readinessVersion }}", |
| 39 | "imagePullPolicy": "{{ .Values.pullPolicy }}", |
| 40 | "name": "vnfsdk-readiness" |
| 41 | } |
| 42 | ]' |
| 43 | spec: |
| 44 | containers: |
| 45 | - image: {{ .Values.image.refrepoImage }}:{{ .Values.image.refrepoVersion }} |
| 46 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 47 | name: refrepo |
| 48 | readinessProbe: |
| 49 | tcpSocket: |
| 50 | port: 8702 |
| 51 | initialDelaySeconds: 5 |
| 52 | periodSeconds: 10 |
| 53 | imagePullSecrets: |
| 54 | - name: {{ .Values.nsPrefix }}-docker-registry-key |