Lizi | 9116481 | 2017-12-16 15:28:57 +0800 | [diff] [blame] | 1 | #{{ if not .Values.disableUuiUui }} |
| 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
| 5 | labels: |
| 6 | app: esr-esrserver |
| 7 | name: esr-esrserver |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame^] | 8 | namespace: "{{ .Values.nsPrefix }}" |
Lizi | 9116481 | 2017-12-16 15:28:57 +0800 | [diff] [blame] | 9 | spec: |
| 10 | selector: |
| 11 | matchLabels: |
| 12 | app: esr-esrserver |
| 13 | template: |
| 14 | metadata: |
| 15 | labels: |
| 16 | app: esr-esrserver |
| 17 | name: esr-esrserver |
| 18 | spec: |
| 19 | containers: |
| 20 | - image: {{ .Values.esrserver.image }} |
| 21 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 22 | name: esr-esrserver |
| 23 | env: |
| 24 | - name: MSB_ADDR |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame^] | 25 | value: {{ tpl .Values.msbaddr . }} |
Lizi | 9116481 | 2017-12-16 15:28:57 +0800 | [diff] [blame] | 26 | ports: |
| 27 | - containerPort: {{ .Values.esrserver.port }} |
| 28 | readinessProbe: |
| 29 | tcpSocket: |
| 30 | port: {{ .Values.esrserver.port }} |
| 31 | initialDelaySeconds: 5 |
| 32 | periodSeconds: 10 |
| 33 | imagePullSecrets: |
| 34 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame^] | 35 | #{{ end }} |