Skip to content
Discussion options

You must be logged in to vote

OK, I was originally avoiding the sysctl approach because I thinking "oh no sysctl mods hacky/bad for security" when I realized that the "NET_BIND_SERVICE" is basically doing the same thing. So a minor tweak here and this works:

apiVersion: v1
kind: Pod
metadata:
  name: dnsdist
spec:
  securityContext:
    sysctls:
      - name: net.ipv4.ip_unprivileged_port_start
        value: "0"
  containers:
    - image: powerdns/dnsdist-20:latest
      imagePullPolicy: IfNotPresent
      name: dnsdist
      resources: {}
  restartPolicy: Always
status: {}

I'll leave this discussion open since I'm still kind of curious why the NET_BIND_SERVICE approach wasn't working, if anyone has any ideas (and i…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Ziris85
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants