feat: Add AdGuard Home Helm chart with deployment, services, ingress, and values configuration

This commit is contained in:
sha
2026-03-26 20:57:31 +02:00
parent 07facc58fc
commit 965420e54e
6 changed files with 171 additions and 0 deletions
+61
View File
@@ -0,0 +1,61 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}
labels:
app.kubernetes.io/name: {{ .Chart.Name }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
app.kubernetes.io/component: dns-server
app.kubernetes.io/part-of: network-services
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: {{ .Release.Name }}
template:
metadata:
labels:
app: {{ .Release.Name }}
spec:
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:v{{ .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: dns-tcp
containerPort: 53
protocol: TCP
- name: dns-udp
containerPort: 53
protocol: UDP
- name: http
containerPort: 80
protocol: TCP
- name: https
containerPort: 443
protocol: TCP
- name: admin
containerPort: 3000
protocol: TCP
env:
- name: TZ
value: {{ .Values.timezone | quote }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
- name: work
mountPath: /opt/adguardhome/work
- name: conf
mountPath: /opt/adguardhome/conf
volumes:
- name: work
hostPath:
path: {{ .Values.volumes.work.hostPath }}
type: DirectoryOrCreate
- name: conf
hostPath:
path: {{ .Values.volumes.conf.hostPath }}
type: DirectoryOrCreate