blob: 97e7d5f31901525fdfcc5e69cff7a58f9853ad1c [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.disableKube2MsbKube2MsbRegistrator }}
HuabingZhao683645e2017-09-02 16:15:41 +080016apiVersion: extensions/v1beta1
17kind: Deployment
18metadata:
HuabingZhao530efc92017-09-11 22:47:55 +080019 name: kube2msb-registrator
BorislavG8bfc6cf2018-02-27 15:04:26 +000020 namespace: "{{ .Values.nsPrefix }}"
HuabingZhao683645e2017-09-02 16:15:41 +080021spec:
22 replicas: 1
23 selector:
24 matchLabels:
HuabingZhao530efc92017-09-11 22:47:55 +080025 app: kube2msb-registrator
HuabingZhao683645e2017-09-02 16:15:41 +080026 template:
27 metadata:
28 labels:
HuabingZhao530efc92017-09-11 22:47:55 +080029 app: kube2msb-registrator
30 name: kube2msb-registrator
HuabingZhao683645e2017-09-02 16:15:41 +080031 spec:
HuabingZhao530efc92017-09-11 22:47:55 +080032 hostname: kube2msb-registrator
HuabingZhaoed957a42018-03-12 03:29:20 -040033 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: kube2msb-registrator-readiness
HuabingZhao683645e2017-09-02 16:15:41 +080048 containers:
49 - args:
50 image: {{ .Values.image.kube2msb }}
HuabingZhao530efc92017-09-11 22:47:55 +080051 name: kube2msb-registrator
HuabingZhao683645e2017-09-02 16:15:41 +080052 env:
53 - name: KUBE_MASTER_URL
54 value: {{ .Values.kubeMasterUrl }}
55 - name: MSB_URL
BorislavG8bfc6cf2018-02-27 15:04:26 +000056 value: {{tpl $.Values.discoveryUrl .}}
HuabingZhao683645e2017-09-02 16:15:41 +080057 imagePullPolicy: {{ .Values.pullPolicy }}
HuabingZhao3aad4532017-09-09 10:23:24 +080058 imagePullSecrets:
HuabingZhao01dc8682017-10-27 03:25:34 +000059 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
BorislavG8bfc6cf2018-02-27 15:04:26 +000060#{{ end }}