yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableVnfsdkRefrepo }} |
Dusan Rozman | 75c07c4 | 2017-09-25 10:28:28 -0400 | [diff] [blame] | 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
| 5 | labels: |
| 6 | app: refrepo |
| 7 | name: refrepo |
| 8 | namespace: "{{ .Values.nsPrefix }}-vnfsdk" |
| 9 | spec: |
| 10 | selector: |
| 11 | matchLabels: |
| 12 | app: refrepo |
| 13 | template: |
| 14 | metadata: |
| 15 | labels: |
| 16 | app: refrepo |
| 17 | name: refrepo |
Dusan Rozman | 75c07c4 | 2017-09-25 10:28:28 -0400 | [diff] [blame] | 18 | spec: |
kiranya | 2c0981b | 2017-11-22 11:26:59 +0000 | [diff] [blame] | 19 | initContainers: |
| 20 | - command: |
| 21 | - /root/ready.py |
| 22 | args: |
| 23 | - --container-name |
| 24 | - postgres |
| 25 | env: |
| 26 | - name: NAMESPACE |
| 27 | valueFrom: |
| 28 | fieldRef: |
| 29 | apiVersion: v1 |
| 30 | fieldPath: metadata.namespace |
| 31 | image: "{{ .Values.image.readiness }}:{{ .Values.image.readinessVersion }}" |
| 32 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 33 | name: vnfsdk-readiness |
Dusan Rozman | 75c07c4 | 2017-09-25 10:28:28 -0400 | [diff] [blame] | 34 | containers: |
| 35 | - image: {{ .Values.image.refrepoImage }}:{{ .Values.image.refrepoVersion }} |
| 36 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 37 | name: refrepo |
| 38 | readinessProbe: |
| 39 | tcpSocket: |
| 40 | port: 8702 |
| 41 | initialDelaySeconds: 5 |
| 42 | periodSeconds: 10 |
| 43 | imagePullSecrets: |
| 44 | - name: {{ .Values.nsPrefix }}-docker-registry-key |
kiranya | 2c0981b | 2017-11-22 11:26:59 +0000 | [diff] [blame] | 45 | #{{ end }} |