blob: 4925d1c12153b3b8cf841bcd7b1a08fc67b985e4 [file] [log] [blame]
Alexis de Talhouëted6bd732017-11-28 14:59:30 -05001#{{ if not .Values.disableVfcNokiaVnfmDriver }}
2apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: vfc-nokiavnfmdriver
BorislavG8bfc6cf2018-02-27 15:04:26 +00006 namespace: "{{ .Values.nsPrefix }}"
Alexis de Talhouëted6bd732017-11-28 14:59:30 -05007spec:
8 replicas: {{ .Values.nokiavnfmdriver.replicas }}
9 selector:
10 matchLabels:
11 app: vfc-nokiavnfmdriver
12 template:
13 metadata:
14 labels:
15 app: vfc-nokiavnfmdriver
16 name: vfc-nokiavnfmdriver
17 spec:
18 hostname: vfc-nokiavnfmdriver
19 containers:
20 - args:
21 image: {{.Values.nokiavnfmdriver.image}}
22 name: "vfc-nokiavnfmdriver"
23 env:
24 - name: MSB_ADDR
BorislavG8bfc6cf2018-02-27 15:04:26 +000025 value: {{ tpl .Values.msbaddr . }}
Alexis de Talhouëted6bd732017-11-28 14:59:30 -050026 ports:
27 - containerPort: {{ .Values.nokiavnfmdriver.port }}
28 readinessProbe:
29 tcpSocket:
30 port: {{ .Values.nokiavnfmdriver.port }}
31 initialDelaySeconds: 5
32 periodSeconds: 10
33 imagePullPolicy: "{{ .Values.pullPolicy }}"
34 imagePullSecrets:
35 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
BorislavG8bfc6cf2018-02-27 15:04:26 +000036#{{ end }}