When reverse-resolving a k8s pod IP it'd be really really nice to know at a glance what k8s cluster it comes from.
Right now, the PTRs return the endpoint names in the .cluster.local pseudospace, for example:
21.75.192.10.in-addr.arpa. 5 IN PTR 10-192-75-21.eventstreams-production-tls-service.eventstreams.svc.cluster.local.
This is actually "eventstreams-production" on the staging-codfw cluster. Impossible to tell from this DNS response.
CoreDNS's rewrite plugin supports modifying the values of returned PTRs ... as of this pull request, first released in v1.9.4.
We run v1.8.7.
- Upgrade to at least v1.9.4
- Modify helm chart to add rewrite rule for PTR responses to replace .cluster.local suffix with something like $CLUSTERNAME.k8s.wmnet e.g. staging-codfw.k8s.wmnet
Another option:
Remove cluster.local at the kubelet / cluster configuration level. Requires at least kubelet and workload container restarts, possibly more.