Skip to content

Instantly share code, notes, and snippets.

@tuminoid
Created November 30, 2017 08:18
Show Gist options
  • Save tuminoid/81cc7d80ce105bd13d60eb2cb8915a8e to your computer and use it in GitHub Desktop.
Save tuminoid/81cc7d80ce105bd13d60eb2cb8915a8e to your computer and use it in GitHub Desktop.
kube-dns + unbound test
FROM alpine
RUN apk update
RUN apk add unbound bind-tools
COPY unbound.conf /etc/unbound/unbound.conf
CMD ["unbound", "-v", "-d"]
---
apiVersion: v1
kind: ConfigMap
metadata:
name: kube-dns
namespace: kube-system
labels:
addonmanager.kubernetes.io/mode: EnsureExists
data:
upstreamNameservers: |
["192.168.200.7"]
---
apiVersion: v1
kind: Pod
metadata:
name: unbound
spec:
containers:
- image: unbound:latest
name: unbound
hostNetwork: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment