[stable/home-assistant] Make deployment's probes customizable (#19269)

Signed-off-by: Nicolas Maupu <nmaupu@gmail.com>
This commit is contained in:
Nicolas Maupu
2019-12-01 04:21:03 -08:00
committed by Kubernetes Prow Robot
parent ef59e24b7f
commit 8b598885ae
4 changed files with 24 additions and 7 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v1
appVersion: 0.101.2
description: Home Assistant
name: home-assistant
version: 0.9.10
version: 0.9.11
keywords:
- home-assistant
- hass
+6
View File
@@ -40,6 +40,12 @@ The following tables lists the configurable parameters of the Home Assistant cha
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
| `image.pullSecrets` | Secrets to use when pulling the image | `[]` |
| `strategyType` | Specifies the strategy used to replace old Pods by new ones | `Recreate` |
| `probes.liveness.initialDelaySeconds` | Specify liveness `initialDelaySeconds` parameter for the deployment | `60` |
| `probes.liveness.failureThreshold` | Specify liveness `failureThreshold` parameter for the deployment | `5` |
| `probes.liveness.timeoutSeconds` | Specify liveness `timeoutSeconds` parameter for the deployment | `10` |
| `probes.readiness.initialDelaySeconds` | Specify readiness `initialDelaySeconds` parameter for the deployment | `60` |
| `probes.readiness.failureThreshold` | Specify readiness `failureThreshold` parameter for the deployment | `5` |
| `probes.readiness.timeoutSeconds` | Specify readiness `timeoutSeconds` parameter for the deployment | `10` |
| `service.type` | Kubernetes service type for the home-assistant GUI | `ClusterIP` |
| `service.port` | Kubernetes port where the home-assistant GUI is exposed| `8123` |
| `service.annotations` | Service annotations for the home-assistant GUI | `{}` |
@@ -77,16 +77,16 @@ spec:
httpGet:
path: /
port: api
initialDelaySeconds: 60
failureThreshold: 5
timeoutSeconds: 10
initialDelaySeconds: {{ .Values.probes.liveness.initialDelaySeconds }}
failureThreshold: {{ .Values.probes.liveness.failureThreshold }}
timeoutSeconds: {{ .Values.probes.liveness.timeoutSeconds }}
readinessProbe:
httpGet:
path: /
port: api
initialDelaySeconds: 60
failureThreshold: 5
timeoutSeconds: 10
initialDelaySeconds: {{ .Values.probes.readiness.initialDelaySeconds }}
failureThreshold: {{ .Values.probes.readiness.failureThreshold }}
timeoutSeconds: {{ .Values.probes.readiness.timeoutSeconds }}
env:
{{- range $key, $value := .Values.extraEnv }}
- name: {{ $key }}
+11
View File
@@ -11,6 +11,17 @@ image:
# upgrade strategy type (e.g. Recreate or RollingUpdate)
strategyType: Recreate
# Probes configuration
probes:
liveness:
initialDelaySeconds: 60
failureThreshold: 5
timeoutSeconds: 10
readiness:
initialDelaySeconds: 60
failureThreshold: 5
timeoutSeconds: 10
service:
type: ClusterIP
port: 8123