Code Review
/
it
/
dep.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add options to configure livenessprobe using values.yaml file. Fix some minor problems.
[it/dep.git]
/
ric-xapps
/
90-xApps
/
helm
/
xapp-std
/
templates
/
deployment.yaml
diff --git
a/ric-xapps/90-xApps/helm/xapp-std/templates/deployment.yaml
b/ric-xapps/90-xApps/helm/xapp-std/templates/deployment.yaml
index
28bd23b
..
b539b9b
100644
(file)
--- a/
ric-xapps/90-xApps/helm/xapp-std/templates/deployment.yaml
+++ b/
ric-xapps/90-xApps/helm/xapp-std/templates/deployment.yaml
@@
-46,10
+46,10
@@
spec:
- name: http
containerPort: {{ .Values.ricxapp.service.http.containerPort }}
protocol: TCP
- name: http
containerPort: {{ .Values.ricxapp.service.http.containerPort }}
protocol: TCP
- - name: rmr
R
oute
+ - name: rmr
r
oute
containerPort: {{ .Values.ricxapp.service.rmr.route.port }}
protocol: TCP
containerPort: {{ .Values.ricxapp.service.rmr.route.port }}
protocol: TCP
- - name: rmr
D
ata
+ - name: rmr
d
ata
containerPort: {{ .Values.ricxapp.service.rmr.data.port }}
protocol: TCP
volumeMounts:
containerPort: {{ .Values.ricxapp.service.rmr.data.port }}
protocol: TCP
volumeMounts:
@@
-58,18
+58,14
@@
spec:
envFrom:
- configMapRef:
name: {{ include "ricxapp.configmapname" . }}-appenv
envFrom:
- configMapRef:
name: {{ include "ricxapp.configmapname" . }}-appenv
+ {{- if .Values.ricxapp.livenessProbe }}
livenessProbe:
livenessProbe:
- httpGet:
- path: {{ .Values.ricxapp.probes.healthAliveCheckEndpoint }}
- port: {{ .Values.ricxapp.service.http.containerPort }}
- initialDelaySeconds: 5
- periodSeconds: 15
+ {{- .Values.ricxapp.livenessProbe | nindent 12 -}}
+ {{ end }}
+ {{- if .Values.ricxapp.readinessProbe }}
readinessProbe:
readinessProbe:
- httpGet:
- path: {{ .Values.ricxapp.probes.healthReadyCheckEndpoint }}
- port: {{ .Values.ricxapp.service.http.containerPort }}
- initialDelaySeconds: 5
- periodSeconds: 15
+ {{- .Values.ricxapp.readinessProbe | nindent 12 -}}
+ {{ end }}
restartPolicy: Always
volumes:
- name: config-volume
restartPolicy: Always
volumes:
- name: config-volume