blob: 4874970545ec61b9315e3a8a535e406876d2f7e0 [file] [log] [blame]
vaibhav_16dece04b2fe2018-03-22 09:07:12 +00001# Copyright © 2017 Amdocs, Bell Canada
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
maopengzhangeea3dd62017-12-11 18:00:13 +080015#{{ if not .Values.disableVfcVfcztevnfmdriver }}
maopengzhang799cc592017-09-01 09:37:48 +080016apiVersion: extensions/v1beta1
17kind: Deployment
18metadata:
maopengzhangeea3dd62017-12-11 18:00:13 +080019 name: vfc-ztevnfmdriver
BorislavG8bfc6cf2018-02-27 15:04:26 +000020 namespace: "{{ .Values.nsPrefix }}"
maopengzhang799cc592017-09-01 09:37:48 +080021spec:
maopengzhangeea3dd62017-12-11 18:00:13 +080022 replicas: {{ .Values.ztevnfmdriver.replicas }}
maopengzhang799cc592017-09-01 09:37:48 +080023 selector:
24 matchLabels:
maopengzhangeea3dd62017-12-11 18:00:13 +080025 app: vfc-ztevnfmdriver
maopengzhang799cc592017-09-01 09:37:48 +080026 template:
27 metadata:
28 labels:
maopengzhangeea3dd62017-12-11 18:00:13 +080029 app: vfc-ztevnfmdriver
30 name: vfc-ztevnfmdriver
maopengzhang799cc592017-09-01 09:37:48 +080031 spec:
maopengzhangeea3dd62017-12-11 18:00:13 +080032 hostname: vfc-ztevnfmdriver
maopengzhang799cc592017-09-01 09:37:48 +080033 containers:
34 - args:
maopengzhangeea3dd62017-12-11 18:00:13 +080035 image: {{.Values.ztevnfmdriver.image}}
36 name: "vfc-ztevnfmdriver"
maopengzhang799cc592017-09-01 09:37:48 +080037 env:
38 - name: MSB_ADDR
BorislavG8bfc6cf2018-02-27 15:04:26 +000039 value: {{ tpl .Values.msbaddr . }}
maopengzhang799cc592017-09-01 09:37:48 +080040 ports:
maopengzhangeea3dd62017-12-11 18:00:13 +080041 - containerPort: {{ .Values.ztevnfmdriver.port }}
maopengzhang799cc592017-09-01 09:37:48 +080042 readinessProbe:
43 tcpSocket:
maopengzhangeea3dd62017-12-11 18:00:13 +080044 port: {{ .Values.ztevnfmdriver.port }}
maopengzhang799cc592017-09-01 09:37:48 +080045 initialDelaySeconds: 5
46 periodSeconds: 10
47 imagePullPolicy: "{{ .Values.pullPolicy }}"
48 imagePullSecrets:
yurynfcef9942017-10-26 17:10:50 +030049 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
BorislavG8bfc6cf2018-02-27 15:04:26 +000050#{{ end }}