blob: ee5120d42f879162046ffad9ef654d3a45786184 [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.disableMsbMsbConsul }}
HuabingZhaof2a9f562017-08-26 11:49:59 +080016apiVersion: extensions/v1beta1
17kind: Deployment
18metadata:
19 name: msb-consul
BorislavG8bfc6cf2018-02-27 15:04:26 +000020 namespace: "{{ .Values.nsPrefix }}"
HuabingZhaof2a9f562017-08-26 11:49:59 +080021spec:
vaibhav_16dec425f0ed2018-02-16 07:15:59 +000022 replicas: {{ .Values.msbConsulReplicas }}
HuabingZhaof2a9f562017-08-26 11:49:59 +080023 selector:
24 matchLabels:
25 app: msb-consul
26 template:
27 metadata:
28 labels:
29 app: msb-consul
30 name: msb-consul
31 spec:
32 hostname: msb-consul
33 containers:
34 - args:
HuabingZhao14391b42017-09-02 14:38:07 +080035 image: {{ .Values.image.consul }}
36 name: msb-consul
HuabingZhaof2a9f562017-08-26 11:49:59 +080037 ports:
HuabingZhao4ea06552017-08-29 15:30:10 +080038 - containerPort: {{ .Values.consulPort }}
HuabingZhaof2a9f562017-08-26 11:49:59 +080039 name: msb-consul
40 readinessProbe:
41 tcpSocket:
HuabingZhao4ea06552017-08-29 15:30:10 +080042 port: {{ .Values.consulPort }}
HuabingZhaof2a9f562017-08-26 11:49:59 +080043 initialDelaySeconds: 5
44 periodSeconds: 10
yurynfcef9942017-10-26 17:10:50 +030045 imagePullPolicy: {{ .Values.pullPolicy }}
vaibhav_16dec425f0ed2018-02-16 07:15:59 +000046#{{ end }}