Replies: 2 comments 2 replies
-
I'm curious why the DNS resolution doesn't work in the container using |
Beta Was this translation helpful? Give feedback.
0 replies
-
Note that doing a curl request on a debug container against the DNS also fails. Curl requests only works against the IP. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Vector team,
I am using Vector in a custom Kubernetes cluster running on GCP VM instances. I want to push logs to a Google Cloud Storage Bucket but my Vector pods were always failing.
I have all the correct permissions on my GCP instance VM node (roles: "Storage Object Creator" and " Storage Object Viewer ").
So after investigating the issue, I found out that the pod was not resolving the "metadata.google.internal" to 169.254.169.254. The GCP VM instance had the "metadata.google.internal" entry hardcoded in /etc/hosts but that entry was not being used by K8s containers. I can still reach the endpoint by using the IP. Here is the test on debug pod:
The workaround was to add the hardcoded entry in coreDNS configmap by adding the following and then restarting the vector pods:
Is it possible to fallback to the IP 169.254.169.254 if the DNS "metadata.google.internal" fails? Or just use the IP and not use the DNS?
Logs:
Configuration vector-values.yaml:
Beta Was this translation helpful? Give feedback.
All reactions