yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableKube2MsbKube2MsbRegistrator }} |
HuabingZhao | 683645e | 2017-09-02 16:15:41 +0800 | [diff] [blame] | 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
HuabingZhao | 530efc9 | 2017-09-11 22:47:55 +0800 | [diff] [blame] | 5 | name: kube2msb-registrator |
| 6 | namespace: "{{ .Values.nsPrefix }}-kube2msb" |
HuabingZhao | 683645e | 2017-09-02 16:15:41 +0800 | [diff] [blame] | 7 | spec: |
| 8 | replicas: 1 |
| 9 | selector: |
| 10 | matchLabels: |
HuabingZhao | 530efc9 | 2017-09-11 22:47:55 +0800 | [diff] [blame] | 11 | app: kube2msb-registrator |
HuabingZhao | 683645e | 2017-09-02 16:15:41 +0800 | [diff] [blame] | 12 | template: |
| 13 | metadata: |
| 14 | labels: |
HuabingZhao | 530efc9 | 2017-09-11 22:47:55 +0800 | [diff] [blame] | 15 | app: kube2msb-registrator |
| 16 | name: kube2msb-registrator |
HuabingZhao | 683645e | 2017-09-02 16:15:41 +0800 | [diff] [blame] | 17 | spec: |
HuabingZhao | 530efc9 | 2017-09-11 22:47:55 +0800 | [diff] [blame] | 18 | hostname: kube2msb-registrator |
HuabingZhao | 683645e | 2017-09-02 16:15:41 +0800 | [diff] [blame] | 19 | containers: |
| 20 | - args: |
| 21 | image: {{ .Values.image.kube2msb }} |
HuabingZhao | 530efc9 | 2017-09-11 22:47:55 +0800 | [diff] [blame] | 22 | name: kube2msb-registrator |
HuabingZhao | 683645e | 2017-09-02 16:15:41 +0800 | [diff] [blame] | 23 | env: |
| 24 | - name: KUBE_MASTER_URL |
| 25 | value: {{ .Values.kubeMasterUrl }} |
HuabingZhao | 01dc868 | 2017-10-27 03:25:34 +0000 | [diff] [blame] | 26 | - name: AUTH_TOKEN |
| 27 | value: {{ .Values.kubeMasterAuthToken }} |
HuabingZhao | 683645e | 2017-09-02 16:15:41 +0800 | [diff] [blame] | 28 | - name: MSB_URL |
| 29 | value: {{ .Values.discoveryUrl }} |
| 30 | imagePullPolicy: {{ .Values.pullPolicy }} |
HuabingZhao | 3aad453 | 2017-09-09 10:23:24 +0800 | [diff] [blame] | 31 | imagePullSecrets: |
HuabingZhao | 01dc868 | 2017-10-27 03:25:34 +0000 | [diff] [blame] | 32 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 33 | #{{ end }} |