I created a K8s via Terraform in OCI (Oracle cloud). And I encounter the following problem.
a) from a single pod I can't access the internet via name e.g.
# nslookup google.de
nslookup: can't resolve '(null)': Name does not resolve
nslookup: can't resolve 'google.de': Try again
However I can reach the internet via IPs
/ # ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=119 time=1.950 ms
b) I can request services in another pod only when they are on the same node as the inquiring pod. E.g.
# wget 10.244.0.19:9376 --> success when on same node
# wget 10.244.0.18:9376 --> failed because on another node
How can I debug the error?
I looked at https://kubernetes.io/docs/tasks/debug-application-cluster/debug-service/ and already have the problem in the first step. How to continue?
(Also found https://www.jeffgeerling.com/blog/2019/debugging-networking-issues-multi-node-kubernetes-on-virtualbox and from outside it looked similar. However, I'm not in a VM environment.)
What I did was: I updated all worker nodes on the current OS software (oracle Linux).
Best regards Thomas