pixie-io / pixie

Instant Kubernetes-Native Application Observability
https://px.dev
Apache License 2.0
5.5k stars 425 forks source link

Support K8s clusters with custom cluster domains for Pixie cloud #2003

Open ddelnano opened 1 week ago

ddelnano commented 1 week ago

Kubernetes provides the ability to configure the domain for a cluster (via the --cluster-domain kubelet argument. This changes the default cluster.local zone to a custom domain. There is work to support custom cluster domains on the Vizier side (https://github.com/pixie-io/pixie/issues/1581#issuecomment-1760303983), but the cloud should also work with custom cluster domains.

ddelnano commented 1 week ago

If a cloud is deployed to a cluster with a custom domain, the cloud proxy server ends up in a crash loop with the following error.

2024/09/03 16:12:40 [emerg] 8#8: host not found in resolver "kube-dns.kube-system.svc.cluster.local" in /usr/local/openresty/nginx/conf/nginx.conf:43
nginx: [emerg] host not found in resolver "kube-dns.kube-system.svc.cluster.local" in /usr/local/openresty/nginx/conf/nginx.conf:43