Datadog Agent startup failure with Hostname Detection

The DD agent startup failed on container as its not auto detecting container hostname. Agent works fine when its on a host , but when it runs on a container , we face this . Relook at the agent configuration to fix the issue

Fix : The issue was due to Agent unable to connect kubelet API through https . By default TLS verification is enabled . Disabled the TLS verification by setting DD_KUBELET_TLS_VERIFY variable for all containers in Agent manifest — Helm : values.yaml
Then redeploy the agent and issue will be fixed
For more such troubleshooting — Follow us — cubensquare.com