[bitnami/nginx] Add ability to configure Liveness and Readiness Probes

Signed-off-by: Andrew Roth <roth.andy@gmail.com>
This commit is contained in:
Andrew Roth
2019-06-05 15:45:23 -04:00
parent ee14a00d2a
commit 8d67ae736e
3 changed files with 24 additions and 13 deletions

View File

@@ -1,6 +1,6 @@
apiVersion: v1
name: nginx
version: 3.2.2
version: 3.3.0
appVersion: 1.16.0
description: Chart for the nginx server
keywords:

View File

@@ -39,19 +39,9 @@ spec:
- name: http
containerPort: 8080
livenessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 30
timeoutSeconds: 5
failureThreshold: 6
{{ toYaml .Values.livenessProbe | indent 10 }}
readinessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 5
timeoutSeconds: 3
periodSeconds: 5
{{ toYaml .Values.readinessProbe | indent 10 }}
volumeMounts:
{{- if .Values.serverBlock }}
- name: nginx-server-block

View File

@@ -110,6 +110,27 @@ ingress:
# }
# }
## Liveness Probe. The block is directly forwarded into the deployment, so you can use whatever livenessProbe configuration you want.
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/
##
livenessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 30
timeoutSeconds: 5
failureThreshold: 6
## Readiness Probe. The block is directly forwarded into the deployment, so you can use whatever readinessProbe configuration you want.
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/
readinessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 5
timeoutSeconds: 3
periodSeconds: 5
## Pod annotations
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
##