Flux Lookup no such host
What
{"level":"error","ts":"2023-10-28T17:17:09.299Z","msg":"unable to record event","name":"flux-system","namespace":"flux-system","reconciler kind":"GitRepository","error":"POST http://notification-controller.flux-system.svc.cluster.local./ giving up after 5 attempt(s): Post \"http://notification-controller.flux-system.svc.cluster.local./\": dial tcp: lookup notification-controller.flux-system.svc.cluster.local. on 10.43.0.10:53: no such host"}
How to fix
You are most likely getting this error because your Kubernetes cluster is not using cluster.local
as the Cluster domain
How to find Cluster Domain
View the config map for CoreDNS
In there you will find the below
Bootstrap Flux
Now when you run the bootstrap command, add the --cluster-domain
field
flux bootstrap github \
--owner=$GITHUB_USER \
--repository=fleet-infra \
--branch=main \
--path=./clusters/my-cluster \
+ --cluster-domain cluster.bread \
--personal
Want to make this site better? Open a PR or help fund hosting costs