Kubernetes Labsby OpenLume

0 of 15

123456789101112131415

Puzzle 4 of 15 · Networking · Medium

NetworkPolicy blocks traffic

Interview question
A pod can resolve a Service's name, but its connections to that Service time out. What do you suspect?

The web app cannot reach the API. Every page that needs data hangs and then fails. The API is up, and its name resolves from the web pods, but their connections to it time out.

Find the cause, then fix it by running a command that changes the cluster. Type help to see every command.

curl http://web/products504 Gateway Timeout

0 commands, no hints

TapClick anything in the picture to fill in its command, then press Enter.

you@k8s-labs: ~
# A broken cluster is waiting. Start with: kubectl get pods # Type help to see every command this cluster understands.
you@k8s-labs:~$

All puzzles

Your progress0 of 15 solved

Networking

  • 1Service has no endpointsEasy
  • 2Connection refused on the right ServiceEasy
  • 3Service not found from another namespaceMedium
  • 4NetworkPolicy blocks trafficMedium · playing now

Scheduling

  • 5Pods stuck PendingEasy
  • 6Node had untolerated taintMedium
  • 7Node didn't match the pod's node selectorMedium
  • 8Node NotReadyMedium

Workloads

  • 9CrashLoopBackOffEasy
  • 10ImagePullBackOffEasy
  • 11Readiness probe failedMedium
  • 12OOMKilledMedium
  • 13Downtime during a rolling updateHard

Config

  • 14CreateContainerConfigErrorMedium

Storage

  • 15PersistentVolumeClaim stuck PendingMedium
The cluster is simulated: it runs in your browser, understands the kubectl commands listed by help, and your commands never leave it. Your progress is saved in this browser. We count visits and solves, nothing else.