diff --git a/assets/auto-deploy-app/README.md b/assets/auto-deploy-app/README.md index 7b835ddeaa89a2c993703a85479428e7ab138434..20a38e57dc1ab44febee9aeb5dca56cf7a5b071d 100644 --- a/assets/auto-deploy-app/README.md +++ b/assets/auto-deploy-app/README.md @@ -76,6 +76,7 @@ | ingress.modSecurity.secRuleEngine | Configuration for [ModSecurity's rule engine](https://github.com/SpiderLabs/ModSecurity/wiki/Reference-Manual-(v2.x)#SecRuleEngine) | `DetectionOnly` | | ingress.modSecurity.secRules | Configuration for custom [ModSecurity's rules](https://github.com/SpiderLabs/ModSecurity/wiki/Reference-Manual-(v2.x)#secrule) | `nil` | | ingress.annotations | Ingress annotations | See [`_ingress-annotations.yaml`](./templates/_ingress-annotations.yaml) | +| livenessProbe.enabled | If true, enables liveness probe. | `/` | | livenessProbe.path | Path to access on the HTTP server on periodic probe of container liveness. | `/` | | livenessProbe.scheme | Scheme to access the HTTP server (HTTP or HTTPS). | `HTTP` | | livenessProbe.httpHeaders | List of additional custom headers to send on the server | `[]` | @@ -85,6 +86,7 @@ | livenessProbe.timeoutSeconds | # of seconds after which the liveness probe times out. | `15` | | livenessProbe.probeType | Type of [liveness probe](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes) to use. | `httpGet` | livenessProbe.command | Commands for use with probe type 'exec'. | `{}` +| readinessProbe.enabled | If true, enables readiness probe. | `/` | | readinessProbe.path | Path to access on the HTTP server on periodic probe of container readiness. | `/` | | readinessProbe.scheme | Scheme to access the HTTP server (HTTP or HTTPS). | `HTTP` | | readinessProbe.httpHeaders | List of additional custom headers to send on the server | `[]` | diff --git a/assets/auto-deploy-app/templates/deployment.yaml b/assets/auto-deploy-app/templates/deployment.yaml index d6a7e69ec192c5085fcf7970ac38f9788475970a..5520a20e7c57c94f80f562673312c0dc45d41565 100644 --- a/assets/auto-deploy-app/templates/deployment.yaml +++ b/assets/auto-deploy-app/templates/deployment.yaml @@ -161,6 +161,7 @@ spec: {{- end }} {{- end }} {{- end }} +{{- if .Values.livenessProbe.enabled }} livenessProbe: {{- if eq .Values.livenessProbe.probeType "httpGet" }} httpGet: @@ -184,6 +185,8 @@ spec: {{- end }} initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }} timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }} +{{- end }} +{{- if .Values.readinessProbe.enabled }} readinessProbe: {{- if eq .Values.readinessProbe.probeType "httpGet" }} httpGet: @@ -207,6 +210,7 @@ spec: {{- end }} initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }} timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }} +{{- end }} {{- if .Values.startupProbe.enabled }} startupProbe: {{- if eq .Values.startupProbe.probeType "httpGet" }} diff --git a/assets/auto-deploy-app/values.yaml b/assets/auto-deploy-app/values.yaml index 4d03cdd0125737669d352378311e8d023afca265..73fa77b8f117cc6dd203fe62f2de85c6206be4d0 100644 --- a/assets/auto-deploy-app/values.yaml +++ b/assets/auto-deploy-app/values.yaml @@ -104,6 +104,7 @@ ingress: prometheus: metrics: false livenessProbe: + enabled: true path: "/" initialDelaySeconds: 15 timeoutSeconds: 15 @@ -111,6 +112,7 @@ livenessProbe: probeType: "httpGet" httpHeaders: [] readinessProbe: + enabled: true path: "/" initialDelaySeconds: 5 timeoutSeconds: 3