kind-machine-48222
08/02/2025, 8:39 PMk3s:v1.31.11-k3s1
I deploy K3sContainer and some GenericContainer.
both having same Network.
GenericContainer is webapp .
new GenericContainer<>(MY_APP_IMAGE)
.withExposedPorts(8089)
.withNetwork(network)
.withNetworkAliases("myapp");
if i try to:
wget myapp:8089
from k3s to myApp - works.
But if I deploy a pod in k3s, and from that pod try the same, i get:
Could not resolve host: myapp
if I take the actual IP and use it instead, all works.
but i need to use the name.