[adguard-home] Add basic support for probes, add ability to change deployment strategy (#292)

* [adguard-home] Add basic support for probes

* [adguard-home] Bump chart version

* [adguard-home] Add ability to change deployment strategy

* [adguard-home] Change default strategy to Recreate
This commit is contained in:
Marco Kilchhofer 2020-07-28 03:57:58 +02:00 committed by GitHub
parent 18880d0dae
commit 457776fe7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 41 additions and 1 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "v0.8"
description: DNS proxy as ad-blocker for local network
name: adguard-home
version: 1.0.0
version: 1.1.0
keywords:
- adguard-home
- adguard

View File

@ -9,6 +9,8 @@ metadata:
app.kubernetes.io/managed-by: {{ .Release.Service }}
spec:
replicas: 1
strategy:
type: {{ .Values.strategyType }}
revisionHistoryLimit: 3
selector:
matchLabels:
@ -65,6 +67,36 @@ spec:
containerPort: 853
protocol: TCP
{{- end }}
{{- if .Values.probes.liveness.enabled }}
livenessProbe:
httpGet:
path: /login.html
port: http
scheme: HTTP
initialDelaySeconds: {{ .Values.probes.liveness.initialDelaySeconds }}
failureThreshold: {{ .Values.probes.liveness.failureThreshold }}
periodSeconds: {{ .Values.probes.liveness.periodSeconds }}
{{- end }}
{{- if .Values.probes.readiness.enabled }}
readinessProbe:
httpGet:
path: /login.html
port: http
scheme: HTTP
initialDelaySeconds: {{ .Values.probes.readiness.initialDelaySeconds }}
failureThreshold: {{ .Values.probes.readiness.failureThreshold }}
periodSeconds: {{ .Values.probes.readiness.periodSeconds }}
{{- end }}
{{- if .Values.probes.startup.enabled }}
startupProbe:
httpGet:
path: /login.html
port: http
scheme: HTTP
initialDelaySeconds: {{ .Values.probes.startup.initialDelaySeconds }}
failureThreshold: {{ .Values.probes.startup.failureThreshold }}
periodSeconds: {{ .Values.probes.startup.periodSeconds }}
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumes:

View File

@ -1,3 +1,6 @@
# upgrade strategy type (e.g. Recreate or RollingUpdate)
strategyType: Recreate
image:
repository: adguard/adguardhome
tag: v0.102.0
@ -25,12 +28,17 @@ ingress:
# Probes configuration
probes:
liveness:
enabled: true
initialDelaySeconds: 5
failureThreshold: 5
periodSeconds: 10
readiness:
enabled: false
initialDelaySeconds: 5
failureThreshold: 5
periodSeconds: 10
startup:
enabled: false
initialDelaySeconds: 5
failureThreshold: 30
periodSeconds: 10