Files
homelab-v/k8s/infra/network/dns/unbound/deployment.yaml
T
Vegard Hagen ee41262cc2 feat(bgp): enable bgp in cilium and disable l2 announcements
Change IP of all LB Services to a different subnet

Use externalTrafficPolicy on some LB Services

Signed-off-by: Vegard Hagen <[email protected]>
2025-11-16 18:59:51 +01:00

67 lines
2.0 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: unbound
namespace: dns
spec:
selector:
matchLabels:
app: unbound
template:
metadata:
labels:
app: unbound
spec:
#securityContext:
# seccompProfile:
# type: RuntimeDefault
containers:
- name: unbound
image: docker.io/mvance/unbound:1.22.0 # renovate: docker=docker.io/mvance/unbound
#securityContext:
# allowPrivilegeEscalation: false
# readOnlyRootFilesystem: false
ports:
- name: unbound-dns-tcp
containerPort: 5335
protocol: TCP
- name: unbound-dns-udp
containerPort: 5335
protocol: UDP
resources:
requests:
cpu: 10m
memory: 64Mi
limits:
memory: 128Mi
startupProbe:
exec:
command: [ 'drill', '@127.0.0.1', '-p', '53', 'nrk.no' ]
initialDelaySeconds: 10
failureThreshold: 3
timeoutSeconds: 5
volumeMounts:
- name: config
mountPath: /opt/unbound/etc/unbound/unbound.conf
subPath: unbound.conf
- name: a-records
mountPath: /opt/unbound/etc/unbound/a-records.conf
subPath: a-records.conf
- name: forward-records
mountPath: /opt/unbound/etc/unbound/forward-records.conf
subPath: forward-records.conf
- name: srv-records
mountPath: /opt/unbound/etc/unbound/srv-records.conf
subPath: srv-records.conf
volumes:
- name: config
configMap:
name: unbound-config
items: [ { key: unbound.conf.default, path: unbound.conf } ]
- name: a-records
configMap: { name: unbound-a-records }
- name: forward-records
configMap: { name: unbound-forward-records }
- name: srv-records
configMap: { name: unbound-srv-records }