blob: f9ec271515b75cbfde7246600ece15f69814472c [file] [log] [blame]
Lizi91164812017-12-16 15:28:57 +08001#{{ if not .Values.disableesrgui }}
2apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 labels:
6 app: esr-esrgui
7 name: esr-esrgui
BorislavG8bfc6cf2018-02-27 15:04:26 +00008 namespace: "{{ .Values.nsPrefix }}"
Lizi91164812017-12-16 15:28:57 +08009spec:
10 selector:
11 matchLabels:
12 app: esr-esrgui
13 template:
14 metadata:
15 labels:
16 app: esr-esrgui
17 name: esr-esrgui
18 spec:
19 containers:
20 - image: {{ .Values.esrgui.image }}
21 imagePullPolicy: {{ .Values.pullPolicy }}
22 name: esr-esrgui
23 env:
24 - name: MSB_ADDR
BorislavG8bfc6cf2018-02-27 15:04:26 +000025 value: {{ tpl .Values.msbaddr . }}
Lizi91164812017-12-16 15:28:57 +080026 ports:
27 - containerPort: {{ .Values.esrgui.port }}
28 readinessProbe:
29 tcpSocket:
30 port: 8080
31 initialDelaySeconds: 5
32 periodSeconds: 10
33 imagePullSecrets:
34 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
BorislavG8bfc6cf2018-02-27 15:04:26 +000035#{{ end }}