Installed newrelic-infrastructure-k8s on a kubernetes cluster and we are having proxy problem with Infra K8 agent. Agents are created successfully but unable send any data to infra-api. We see this exception in newrelic infra agent pod log.
time=“2018-08-02T18:37:06Z” level=warning msg=“network error waiting for endpoint, retrying” error=“Head https://infra-api.newrelic.com: proxyconnect tcp: dial tcp :80: getsockopt: connection refused”
time=“2018-08-02T18:37:16Z” level=debug msg=“URL Error detected, may be configuration problem or network connectivity issue”
Here all we tried.
-
Proxy is configured correct and we do see the proxy setting reflected in pod agent log.
ubuntu@ip-10-123-123.123:~$ kubectl logs newrelic-infra-6xkh5
time=“2018-08-02T18:37:06Z” level=debug msg=“Using collector URL: https://infra-api.newrelic.com”
time=“2018-08-02T18:37:06Z” level=info msg=“Using proxy address from config file: http:://proxy.xxxx.xxxxx.com:8099” -
Infra-api.newrelic.com and api.newrelic.com are whitelisted and when we do CURL we are getting valid response.
curl -X GET
https://infra-api.newrelic.com/v2/alerts/conditions/101
-H 'x-api-key:xxxxxxxxxxxxxxxxx’
–proxy http://proxy.xxx.xxxxx.com:8099
Please share some insight what is going wrong here and what else we can try to see newrelic k8 infra data.