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