Medium,  on  KubernetesContainersNetworking Submissions: 52/160

There's a Pod called lonely running in the default namespace, acting as a simple HTTP server. Oddly enough, it chooses a random port to listen on each time it starts. Your job is to figure out which port this server is using and then send an HTTP request to it. To add to the challenge, there's no shell available in the container, and your access to the cluster is quite limited.

Good luck!

Hint 1 💡

With shell access to the Pod, it shouldn't be too hard to find out which port the server process is listening on. It's a pretty typical Linux task, and there are well-known tools to help you with that.

Hint 2 💡

If you're not sure how to execute commands in a Pod without a shell, you may want to solve this challenge first.

Hint 3 💡

Pod's IP address may not be directly accessible from outside the cluster. So you'll need to either find a way to access the port while being in the cluster, or forward a local port to the Pod.

Level up your server-side game — Join 6,500 engineers who receive insightful learning materials straight to their inbox