blob: 9fc5c7b4ddb8f4c5ed519569b87d179cfde25158 [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
yurynfcef9942017-10-26 17:10:50 +030015#{{ if not .Values.disableMsbMsbIag }}
HuabingZhaofe67ad72017-08-29 11:09:49 +080016apiVersion: extensions/v1beta1
17kind: Deployment
18metadata:
19 name: msb-iag
BorislavG8bfc6cf2018-02-27 15:04:26 +000020 namespace: "{{ .Values.nsPrefix }}"
HuabingZhaofe67ad72017-08-29 11:09:49 +080021spec:
HuabingZhao77d44cd2017-08-30 09:30:03 +080022 replicas: {{ .Values.iagReplicas }}
HuabingZhaofe67ad72017-08-29 11:09:49 +080023 selector:
24 matchLabels:
25 app: msb-iag
26 template:
27 metadata:
28 labels:
29 app: msb-iag
30 name: msb-iag
31 spec:
32 hostname: msb-iag
Huabing Zhao097f6812018-02-09 08:21:38 +000033 initContainers:
34 - command:
35 - /root/ready.py
36 args:
37 - --container-name
38 - msb-discovery
39 env:
40 - name: NAMESPACE
41 valueFrom:
42 fieldRef:
43 apiVersion: v1
44 fieldPath: metadata.namespace
45 image: {{ .Values.image.readiness }}
46 imagePullPolicy: {{ .Values.pullPolicy }}
47 name: msb-iag-readiness
HuabingZhaofe67ad72017-08-29 11:09:49 +080048 containers:
49 - args:
HuabingZhao28f6d3b2017-09-19 21:37:38 -040050 image: {{ .Values.image.apigateway }}
HuabingZhaofe67ad72017-08-29 11:09:49 +080051 name: "msb-iag"
52 env:
53 - name: CONSUL_IP
BorislavG8bfc6cf2018-02-27 15:04:26 +000054 value: msb-consul.{{ .Values.nsPrefix }}
HuabingZhaofe67ad72017-08-29 11:09:49 +080055 - name: SDCLIENT_IP
BorislavG8bfc6cf2018-02-27 15:04:26 +000056 value: msb-discovery.{{ .Values.nsPrefix }}
HuabingZhaofe67ad72017-08-29 11:09:49 +080057 - name: ROUTE_LABELS
58 value: "visualRange:1"
59 ports:
60 - containerPort: {{ .Values.iagPort }}
61 name: msb-iag
62 readinessProbe:
63 tcpSocket:
64 port: {{ .Values.iagPort }}
65 initialDelaySeconds: 5
66 periodSeconds: 10
67 imagePullPolicy: "{{ .Values.pullPolicy}}"
HuabingZhaoba8f3492017-09-09 10:17:20 +080068 imagePullSecrets:
69 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
Huabing Zhao097f6812018-02-09 08:21:38 +000070#{{ end }}