blob: 583a00f22a4482fd4bc6f990d9f0cfa412fbed70 [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.disableMsbMsbDiscovery }}
HuabingZhaoc2b4fcf2017-08-29 10:48:25 +080016apiVersion: extensions/v1beta1
17kind: Deployment
18metadata:
19 name: msb-discovery
BorislavG8bfc6cf2018-02-27 15:04:26 +000020 namespace: "{{ .Values.nsPrefix }}"
HuabingZhaoc2b4fcf2017-08-29 10:48:25 +080021spec:
HuabingZhao77d44cd2017-08-30 09:30:03 +080022 replicas: {{ .Values.discoveryReplicas }}
HuabingZhaoc2b4fcf2017-08-29 10:48:25 +080023 selector:
24 matchLabels:
25 app: msb-discovery
26 template:
27 metadata:
28 labels:
29 app: msb-discovery
30 name: msb-discovery
31 spec:
32 hostname: msb-discovery
Huabing Zhao097f6812018-02-09 08:21:38 +000033 initContainers:
34 - command:
35 - /root/ready.py
36 args:
37 - --container-name
38 - msb-consul
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-discovery-readiness
HuabingZhaoc2b4fcf2017-08-29 10:48:25 +080048 containers:
49 - args:
HuabingZhao14391b42017-09-02 14:38:07 +080050 image: {{ .Values.image.discovery }}
HuabingZhaoc2b4fcf2017-08-29 10:48:25 +080051 name: "msb-discovery"
52 env:
53 - name: CONSUL_IP
BorislavG8bfc6cf2018-02-27 15:04:26 +000054 value: msb-consul.{{ .Values.nsPrefix }}
HuabingZhaoc2b4fcf2017-08-29 10:48:25 +080055 ports:
HuabingZhao4ea06552017-08-29 15:30:10 +080056 - containerPort: {{ .Values.discoveryPort }}
HuabingZhaoc2b4fcf2017-08-29 10:48:25 +080057 name: msb-discovery
58 readinessProbe:
59 tcpSocket:
HuabingZhao4ea06552017-08-29 15:30:10 +080060 port: {{ .Values.discoveryPort }}
HuabingZhaoc2b4fcf2017-08-29 10:48:25 +080061 initialDelaySeconds: 5
62 periodSeconds: 10
HuabingZhao14391b42017-09-02 14:38:07 +080063 imagePullPolicy: {{ .Values.pullPolicy }}
HuabingZhaoba8f3492017-09-09 10:17:20 +080064 imagePullSecrets:
65 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
Huabing Zhao097f6812018-02-09 08:21:38 +000066#{{ end }}