feat/healthcheck update added type tcpSocket (#32)
* feat/healthcheck update added type tcpSocket * Update service.yaml Signed-off-by: Rakshit Menpara <205111+deltasquare4@users.noreply.github.com> * moved 'initialDelaySeconds' and 'periodSeconds' to values file --------- Signed-off-by: Rakshit Menpara <205111+deltasquare4@users.noreply.github.com> Co-authored-by: Rakshit Menpara <205111+deltasquare4@users.noreply.github.com>main
parent
0970343c51
commit
87d029991e
|
|
@ -4,5 +4,5 @@ description: A Helm chart for deploying any custom applications, specifically po
|
|||
maintainers:
|
||||
- name: improwised
|
||||
type: application
|
||||
version: 1.0.2
|
||||
version: 1.0.3
|
||||
appVersion: 1.0.0
|
||||
|
|
|
|||
|
|
@ -109,13 +109,29 @@ spec:
|
|||
livenessProbe:
|
||||
httpGet:
|
||||
path: {{ .healthcheck.path | default $.Values.serviceTemplate.healthcheck.path }}
|
||||
port: http
|
||||
port: {{ .healthcheck.port | default $.Values.serviceTemplate.healthcheck.port }}
|
||||
timeoutSeconds: 7
|
||||
initialDelaySeconds: {{ .healthcheck.initialDelaySeconds | default $.Values.serviceTemplate.healthcheck.initialDelaySeconds | default "20" }}
|
||||
periodSeconds: {{ .healthcheck.periodSeconds | default $.Values.serviceTemplate.healthcheck.periodSeconds | default "20" }}
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: {{ .healthcheck.path | default $.Values.serviceTemplate.healthcheck.path }}
|
||||
port: http
|
||||
port: {{ .healthcheck.port | default $.Values.serviceTemplate.healthcheck.port }}
|
||||
timeoutSeconds: 7
|
||||
initialDelaySeconds: {{ .healthcheck.initialDelaySeconds | default $.Values.serviceTemplate.healthcheck.initialDelaySeconds | default "20" }}
|
||||
periodSeconds: {{ .healthcheck.periodSeconds | default $.Values.serviceTemplate.healthcheck.periodSeconds | default "20" }}
|
||||
{{- end }}
|
||||
{{- if and (or (eq .healthcheck.type "tcpSocket") (eq $.Values.serviceTemplate.healthcheck.type "tcpSocket")) (or .healthcheck.port $.Values.serviceTemplate.healthcheck.port) }}
|
||||
livenessProbe:
|
||||
tcpSocket:
|
||||
port: {{ .healthcheck.port | default $.Values.serviceTemplate.healthcheck.port }}
|
||||
initialDelaySeconds: {{ .healthcheck.initialDelaySeconds | default $.Values.serviceTemplate.healthcheck.initialDelaySeconds | default "20" }}
|
||||
periodSeconds: {{ .healthcheck.periodSeconds | default $.Values.serviceTemplate.healthcheck.periodSeconds | default "20" }}
|
||||
readinessProbe:
|
||||
tcpSocket:
|
||||
port: {{ .healthcheck.port | default $.Values.serviceTemplate.healthcheck.port }}
|
||||
initialDelaySeconds: {{ .healthcheck.initialDelaySeconds | default $.Values.serviceTemplate.healthcheck.initialDelaySeconds | default "20" }}
|
||||
periodSeconds: {{ .healthcheck.periodSeconds | default $.Values.serviceTemplate.healthcheck.periodSeconds | default "20" }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
|
|
|
|||
|
|
@ -28,6 +28,9 @@ serviceTemplate:
|
|||
enabled: false
|
||||
type: httpGet
|
||||
path: /healthz
|
||||
port: http
|
||||
# initialDelaySeconds: 30
|
||||
# periodSeconds: 30
|
||||
|
||||
autoscaling: false
|
||||
minReplicaCount: 1
|
||||
|
|
|
|||
Loading…
Reference in New Issue