blob: f95faf69d077fb28151e1e0617d44f3908da6184 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableKube2MsbKube2MsbRegistrator }}
HuabingZhao683645e2017-09-02 16:15:41 +08002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
HuabingZhao530efc92017-09-11 22:47:55 +08005 name: kube2msb-registrator
BorislavG8bfc6cf2018-02-27 15:04:26 +00006 namespace: "{{ .Values.nsPrefix }}"
HuabingZhao683645e2017-09-02 16:15:41 +08007spec:
8 replicas: 1
9 selector:
10 matchLabels:
HuabingZhao530efc92017-09-11 22:47:55 +080011 app: kube2msb-registrator
HuabingZhao683645e2017-09-02 16:15:41 +080012 template:
13 metadata:
14 labels:
HuabingZhao530efc92017-09-11 22:47:55 +080015 app: kube2msb-registrator
16 name: kube2msb-registrator
HuabingZhao683645e2017-09-02 16:15:41 +080017 spec:
HuabingZhao530efc92017-09-11 22:47:55 +080018 hostname: kube2msb-registrator
HuabingZhaoed957a42018-03-12 03:29:20 -040019 initContainers:
20 - command:
21 - /root/ready.py
22 args:
23 - --container-name
24 - msb-discovery
25 env:
26 - name: NAMESPACE
27 valueFrom:
28 fieldRef:
29 apiVersion: v1
30 fieldPath: metadata.namespace
31 image: {{ .Values.image.readiness }}
32 imagePullPolicy: {{ .Values.pullPolicy }}
33 name: kube2msb-registrator-readiness
HuabingZhao683645e2017-09-02 16:15:41 +080034 containers:
35 - args:
36 image: {{ .Values.image.kube2msb }}
HuabingZhao530efc92017-09-11 22:47:55 +080037 name: kube2msb-registrator
HuabingZhao683645e2017-09-02 16:15:41 +080038 env:
39 - name: KUBE_MASTER_URL
40 value: {{ .Values.kubeMasterUrl }}
HuabingZhao01dc8682017-10-27 03:25:34 +000041 - name: AUTH_TOKEN
42 value: {{ .Values.kubeMasterAuthToken }}
HuabingZhao683645e2017-09-02 16:15:41 +080043 - name: MSB_URL
BorislavG8bfc6cf2018-02-27 15:04:26 +000044 value: {{tpl $.Values.discoveryUrl .}}
HuabingZhao683645e2017-09-02 16:15:41 +080045 imagePullPolicy: {{ .Values.pullPolicy }}
HuabingZhao3aad4532017-09-09 10:23:24 +080046 imagePullSecrets:
HuabingZhao01dc8682017-10-27 03:25:34 +000047 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
BorislavG8bfc6cf2018-02-27 15:04:26 +000048#{{ end }}