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
Annavar Satish 2023-05-15 10:34:51 +05:30 committed by GitHub
parent 0970343c51
commit 87d029991e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 3 deletions

View File

@ -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

View File

@ -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 }}

View File

@ -28,6 +28,9 @@ serviceTemplate:
enabled: false
type: httpGet
path: /healthz
port: http
# initialDelaySeconds: 30
# periodSeconds: 30
autoscaling: false
minReplicaCount: 1