Skip to content

Instantly share code, notes, and snippets.

@nlamirault
Last active March 2, 2018 16:47
Show Gist options
  • Save nlamirault/0304b407a08549e993fed24885499301 to your computer and use it in GitHub Desktop.
Save nlamirault/0304b407a08549e993fed24885499301 to your computer and use it in GitHub Desktop.
$ kubectl get ingress --all-namespaces
NAMESPACE NAME HOSTS ADDRESS PORTS AGE
hypriot hypriot-ingress hypriot.jarvis 192.168.1.20,... 80 2h
kube-system kubernetes-dashboard-ingress dashboard.jarvis 192.168.1.20,... 80 72d
monitoring prometheus prometheus.jarvis 192.168.1.20,... 80 17d
$ cat /srv/docker/coredns/Corefile
.:53 {
kubernetes jarvis {
endpoint https://192.168.1.36:6443
tls /config/coredns-external.crt /config/coredns-external.key /config/ca.crt
}
proxy . 8.8.8.8:53
prometheus 0.0.0.0:8253
health 0.0.0.0:8781
log
errors
}
$ cat /srv/docker/coredns/docker-compose.yml
version: '2'
services:
coredns:
image: zeiot/rpi-coredns:1.0.5
container_name: coredns
command: -conf /config/Corefile
ports:
- "8053:53/udp"
- "8053:53/tcp"
- "9153:9153/tcp"
volumes:
- /srv/docker/coredns:/config
restart: always
$ dig @192.168.1.36 -p 8053 hypriot.hypriot.svc.cluster.local +short
10.110.33.48
coredns | 192.168.1.36 - [02/Mar/2018:16:42:48 +0000] 8083 "A IN hypriot.hypriot.svc.cluster.local. udp 63 false 4096" NOERROR qr,aa,rd,ra 79 927.758µs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment