Scenario: "Poznań": Helm Chart Issue in Kubernetes
Level: Medium
Type: Fix
Tags: kubernetes pro
Description: NOTE: Prompt may take a few extra seconds to be responsive while the k3s environment gets ready. Root access is not needed for this challenge ("admin" user cannot sudo).
A DevOps engineer created a Helm Chart web_chart with a custom nginx site, however he still gets the default nginx index.html.
You can check for example with POD_IP=$(kubectl get pods -n default -o jsonpath='{.items[0].status.podIP}') and curl -s "${POD_IP}">.
In addition he should set replicas to 3.
The chart is not working as expected. Fix the configurations so you get the custom HTML page from any nginx pod.
Credit Kamil Błaż
Root (sudo) Access: True
Test: Doing curl on the default port (:80) of any nginx pod returns a Welcome SadServers page. The "Check My Solution" button runs the script /home/admin/agent/check.sh, which you can see and execute.
Time to Solve: 15 minutes.