When I run an nginx pod then try to curl www.google.com it fails.
$ kubectl exec -it nginx -- sh
# curl http://google.com
'curl: (6) Could not resolve host: google.com
How can I resolve this ?
cni conf:
"cniVersion": "0.3.1",
"name": "crio",
"type": "bridge",
"bridge": "cni0",
"isGateway": true,
"ipMasq": true,
"hairpinMode": true,
"ipam": {
"type": "host-local",
"routes": [
{ "dst": "0.0.0.0/0" },
{ "dst": "1100:200::1/24" }
],
"ranges": [
[{ "subnet": "10.85.0.0/16" }],
[{ "subnet": "1100:200::/24" }]
]
}
}
When I run nginx container with podman then try to execute a curl within the container : $ curl http://google.com (timeout)
Try this:
kubeadm reset
/opt/bni/bin/weave-*
.kubeadm init
.Looking like the following issue: