Skip to content

Commit

Permalink
Collect /etc/resolv.conf inside a pod
Browse files Browse the repository at this point in the history
This should help see what nameservers are used to resolve DNS
queries inside a cluster
  • Loading branch information
banjoh committed Sep 7, 2023
1 parent 7b5cb2d commit bdee4d6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions host/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,14 @@ spec:
collectorName: "localhost-ips"
command: "sh"
args: ["-c", "host localhost"]
- runPod:
name: resolv.conf
podSpec:
containers:
- name: resolv-conf
image: alpine
command: ["sh", "-c", "cat /etc/resolv.conf"]
restartPolicy: Never
hostAnalyzers:
- certificate:
collectorName: k8s-api-keypair
Expand Down

0 comments on commit bdee4d6

Please sign in to comment.