Kubernetes Pod - HTTP not working inside (curl)

10/22/2020

When trying to curl http://google.de it doesn't work. But when i try https://google.de, i get an answer.

# HTTPS
root@grafana-77798b4bf9-jhn2z:/usr/share/grafana# curl https://google.de
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>301 Moved</TITLE></HEAD><BODY>
<H1>301 Moved</H1>
The document has moved
<A HREF="https://www.google.de/">here</A>.
</BODY></HTML>

# HTTP
root@grafana-77798b4bf9-jhn2z:/usr/share/grafana# curl -v http://google.de
*   Trying 216.58.213.195:80...
* TCP_NODELAY set
*   Trying 2a00:1450:4005:803::2003:80...
* TCP_NODELAY set
* Immediate connect fail for 2a00:1450:4005:803::2003: Cannot assign requested address
*   Trying 2a00:1450:4005:803::2003:80...
* TCP_NODELAY set
* Immediate connect fail for 2a00:1450:4005:803::2003: Cannot assign requested address
*   Trying 2a00:1450:4005:803::2003:80...
* TCP_NODELAY set
* Immediate connect fail for 2a00:1450:4005:803::2003: Cannot assign requested address
^C

Does somebody else, have similar result? Image: grafana/grafana:latest-ubuntu

Running a 2 Node Cluster (1 Master, 1 Worker). Both on Debian Buster

Linux kubernetes-master 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11) x86_64 GNU/Linux
Linux kubernetes-slave 4.9.0-12-amd64 #1 SMP Debian 4.9.210-1+deb9u1 (2020-06-07) x86_64 GNU/Linux
-- bymo
docker
grafana
http
kubernetes

0 Answers