e9d3282ef78c3cd06270505067327e6ebc04d55f
[oom.git] / kubernetes / vfc / templates / vfc-hwvnfmdriver-deployment.yaml
1 #{{ if not .Values.disableVfcVfcHwvnfmdriver }}
2 apiVersion: extensions/v1beta1
3 kind: Deployment
4 metadata:
5   name: vfc-hwvnfmdriver
6   namespace: "{{ .Values.nsPrefix }}-{{ .Chart.Name }}"
7 spec:
8   replicas: {{ .Values.hwvnfmdriver.replicas }}
9   selector:
10     matchLabels:
11       app: vfc-hwvnfmdriver
12   template:
13     metadata:
14       labels:
15         app: vfc-hwvnfmdriver
16       name: vfc-hwvnfmdriver
17     spec:
18       hostname: vfc-hwvnfmdriver
19       containers:
20       - args:
21         image:  {{.Values.hwvnfmdriver.image}}
22         name: "vfc-hwvnfmdriver"
23         env:
24         - name: MSB_ADDR
25           value: {{ .Values.msbaddr }}
26         ports:
27         - containerPort: {{ .Values.hwvnfmdriver.port }}
28         readinessProbe:
29           tcpSocket:
30             port: {{ .Values.hwvnfmdriver.port }}
31           initialDelaySeconds: 5
32           periodSeconds: 10
33         imagePullPolicy: "{{ .Values.pullPolicy }}"
34       imagePullSecrets:
35       - name: "{{ .Values.nsPrefix }}-docker-registry-key"
36 #{{ end }}