blob: d6b194008bfb336b9a50678ec60e96b009a66a67 [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
HuabingZhao683645e2017-09-02 16:15:41 +080019 containers:
20 - args:
21 image: {{ .Values.image.kube2msb }}
HuabingZhao530efc92017-09-11 22:47:55 +080022 name: kube2msb-registrator
HuabingZhao683645e2017-09-02 16:15:41 +080023 env:
24 - name: KUBE_MASTER_URL
25 value: {{ .Values.kubeMasterUrl }}
HuabingZhao01dc8682017-10-27 03:25:34 +000026 - name: AUTH_TOKEN
27 value: {{ .Values.kubeMasterAuthToken }}
HuabingZhao683645e2017-09-02 16:15:41 +080028 - name: MSB_URL
BorislavG8bfc6cf2018-02-27 15:04:26 +000029 value: {{tpl $.Values.discoveryUrl .}}
HuabingZhao683645e2017-09-02 16:15:41 +080030 imagePullPolicy: {{ .Values.pullPolicy }}
HuabingZhao3aad4532017-09-09 10:23:24 +080031 imagePullSecrets:
HuabingZhao01dc8682017-10-27 03:25:34 +000032 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
BorislavG8bfc6cf2018-02-27 15:04:26 +000033#{{ end }}