"Singara": Docker and Kubernetes web app not working.
Scenario: "Singara": Docker and Kubernetes web app not working.
Level: Hard
Type: Fix
Tags: docker kubernetes unusual-tricky python
Access: Email
Description: There's a k3s Kubernetes install you can access with kubectl. The Kubernetes YAML manifests under /home/admin have been applied. Get the webapp Deployment in the web namespace to a Running pod that serves its HTTP response (a town/city name). Running the image with host Docker alone is not enough to pass the check.
TIP: You can use k as an alias for kubectl, and it has autocomplete enabled.
Root (sudo) Access: True
Test: curl localhost:8888 returns a value from the webapp deployed Kubernetes pod.
The "Check My Solution" button runs the script /home/admin/agent/check.sh, which you can see and execute.
Time to Solve: 20 minutes.