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 |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 6 | namespace: "{{ .Values.nsPrefix }}" |
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 |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 29 | value: {{tpl $.Values.discoveryUrl .}} |
HuabingZhao | 683645e | 2017-09-02 16:15:41 +0800 | [diff] [blame] | 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" |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 33 | #{{ end }} |