blob: 9df3aa8fa5d94ccbb25fd8c129583e3ed3d9d7b6 [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
6 namespace: "{{ .Values.nsPrefix }}-kube2msb"
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
29 value: {{ .Values.discoveryUrl }}
30 imagePullPolicy: {{ .Values.pullPolicy }}
HuabingZhao3aad4532017-09-09 10:23:24 +080031 imagePullSecrets:
HuabingZhao01dc8682017-10-27 03:25:34 +000032 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
yurynfcef9942017-10-26 17:10:50 +030033#{{ end }}