feat(dns): use Unbound and AdGuardHome for DNS

Unbound as a recursive resolver and AdGuardHome as main DNS backed by
Unbound
This commit is contained in:
Vegard Hagen
2024-11-17 17:03:29 +01:00
parent 38f118fa17
commit 9dec025db7
13 changed files with 506 additions and 3 deletions
@@ -0,0 +1,58 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: adguard
namespace: dns
spec:
replicas: 1
selector:
matchLabels:
app: adguard
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: adguard
spec:
securityContext:
seccompProfile:
type: RuntimeDefault
containers:
- name: adguard
image: docker.io/adguard/adguardhome:v0.107.48 # renovate: docker=docker.io/adguard/adguardhome
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
# capabilities:
# drop: [ "ALL" ]
ports:
- name: dns-tcp
containerPort: 53
protocol: TCP
- name: dns-udp
containerPort: 53
protocol: UDP
- name: dchp
containerPort: 67
protocol: UDP
- name: http
containerPort: 3000
protocol: TCP
resources:
requests:
cpu: 50m
memory: 128Mi
limits:
cpu: 500m
memory: 256Mi
volumeMounts:
- name: adguard-conf
mountPath: /opt/adguardhome/conf
- name: adguard-work
mountPath: /opt/adguardhome/work
volumes:
- name: adguard-conf
emptyDir: {}
- name: adguard-work
emptyDir: {}