Skip to content

Instantly share code, notes, and snippets.

@jonpulsifer
Last active March 1, 2023 01:03
Show Gist options
  • Save jonpulsifer/2ff3e497e35cb0a9d4afa02428410ee7 to your computer and use it in GitHub Desktop.
Save jonpulsifer/2ff3e497e35cb0a9d4afa02428410ee7 to your computer and use it in GitHub Desktop.
Kubernetes Daemonset for PassiveDNS
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: passivedns
spec:
selector:
matchLabels:
name: passivedns
template:
metadata:
labels:
name: passivedns
spec:
tolerations:
- key: node-role.kubernetes.io/control-plane
operator: Exists
effect: NoSchedule
hostNetwork: true
containers:
- name: passivedns
image: jonpulsifer/passivedns:latest
securityContext:
capabilities:
drop: ["all"]
add: ["NET_ADMIN", "NET_RAW"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment