mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-23 23:49:12 +00:00
[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:
parent
18880d0dae
commit
457776fe7c
@ -2,7 +2,7 @@ apiVersion: v1
|
|||||||
appVersion: "v0.8"
|
appVersion: "v0.8"
|
||||||
description: DNS proxy as ad-blocker for local network
|
description: DNS proxy as ad-blocker for local network
|
||||||
name: adguard-home
|
name: adguard-home
|
||||||
version: 1.0.0
|
version: 1.1.0
|
||||||
keywords:
|
keywords:
|
||||||
- adguard-home
|
- adguard-home
|
||||||
- adguard
|
- adguard
|
||||||
|
@ -9,6 +9,8 @@ metadata:
|
|||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
strategy:
|
||||||
|
type: {{ .Values.strategyType }}
|
||||||
revisionHistoryLimit: 3
|
revisionHistoryLimit: 3
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
@ -65,6 +67,36 @@ spec:
|
|||||||
containerPort: 853
|
containerPort: 853
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
{{- end }}
|
{{- 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:
|
resources:
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml .Values.resources | nindent 12 }}
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
# upgrade strategy type (e.g. Recreate or RollingUpdate)
|
||||||
|
strategyType: Recreate
|
||||||
|
|
||||||
image:
|
image:
|
||||||
repository: adguard/adguardhome
|
repository: adguard/adguardhome
|
||||||
tag: v0.102.0
|
tag: v0.102.0
|
||||||
@ -25,12 +28,17 @@ ingress:
|
|||||||
# Probes configuration
|
# Probes configuration
|
||||||
probes:
|
probes:
|
||||||
liveness:
|
liveness:
|
||||||
|
enabled: true
|
||||||
|
initialDelaySeconds: 5
|
||||||
failureThreshold: 5
|
failureThreshold: 5
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
readiness:
|
readiness:
|
||||||
|
enabled: false
|
||||||
|
initialDelaySeconds: 5
|
||||||
failureThreshold: 5
|
failureThreshold: 5
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
startup:
|
startup:
|
||||||
|
enabled: false
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 5
|
||||||
failureThreshold: 30
|
failureThreshold: 30
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
|
Loading…
Reference in New Issue
Block a user