blob: 0a56c740c1e30714cbdf4ec85d538ac45c81bea1 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableVnfsdkRefrepo }}
Dusan Rozman75c07c42017-09-25 10:28:28 -04002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 labels:
6 app: refrepo
7 name: refrepo
8 namespace: "{{ .Values.nsPrefix }}-vnfsdk"
9spec:
10 selector:
11 matchLabels:
12 app: refrepo
13 template:
14 metadata:
15 labels:
16 app: refrepo
17 name: refrepo
Dusan Rozman75c07c42017-09-25 10:28:28 -040018 spec:
kiranya2c0981b2017-11-22 11:26:59 +000019 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 Rozman75c07c42017-09-25 10:28:28 -040034 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
kiranya2c0981b2017-11-22 11:26:59 +000045#{{ end }}