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 | ed957a4 | 2018-03-12 03:29:20 -0400 | [diff] [blame] | 19 | 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 |
HuabingZhao | 683645e | 2017-09-02 16:15:41 +0800 | [diff] [blame] | 34 | containers: |
| 35 | - args: |
| 36 | image: {{ .Values.image.kube2msb }} |
HuabingZhao | 530efc9 | 2017-09-11 22:47:55 +0800 | [diff] [blame] | 37 | name: kube2msb-registrator |
HuabingZhao | 683645e | 2017-09-02 16:15:41 +0800 | [diff] [blame] | 38 | env: |
| 39 | - name: KUBE_MASTER_URL |
| 40 | value: {{ .Values.kubeMasterUrl }} |
HuabingZhao | 01dc868 | 2017-10-27 03:25:34 +0000 | [diff] [blame] | 41 | - name: AUTH_TOKEN |
| 42 | value: {{ .Values.kubeMasterAuthToken }} |
HuabingZhao | 683645e | 2017-09-02 16:15:41 +0800 | [diff] [blame] | 43 | - name: MSB_URL |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 44 | value: {{tpl $.Values.discoveryUrl .}} |
HuabingZhao | 683645e | 2017-09-02 16:15:41 +0800 | [diff] [blame] | 45 | imagePullPolicy: {{ .Values.pullPolicy }} |
HuabingZhao | 3aad453 | 2017-09-09 10:23:24 +0800 | [diff] [blame] | 46 | imagePullSecrets: |
HuabingZhao | 01dc868 | 2017-10-27 03:25:34 +0000 | [diff] [blame] | 47 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 48 | #{{ end }} |