Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation Exam CKAD Topic 6 Question 32 Discussion

Actual exam question for Linux Foundation's CKAD exam
Question #: 32
Topic #: 6
[All CKAD Questions]

Refer to Exhibit.

Set Configuration Context:

[student@node-1] $ | kubectl

Config use-context k8s

Context

A container within the poller pod is hard-coded to connect the nginxsvc service on port 90 . As this port changes to 5050 an additional container needs to be added to the poller pod which adapts the container to connect to this new port. This should be realized as an ambassador container within the pod.

Task

* Update the nginxsvc service to serve on port 5050.

* Add an HAproxy container named haproxy bound to port 90 to the poller pod and deploy the enhanced pod. Use the image haproxy and inject the configuration located at /opt/KDMC00101/haproxy.cfg, with a ConfigMap named haproxy-config, mounted into the container so that haproxy.cfg is available at /usr/local/etc/haproxy/haproxy.cfg. Ensure that you update the args of the poller container to connect to localhost instead of nginxsvc so that the connection is correctly proxied to the new service endpoint. You must not modify the port of the endpoint in poller's args . The spec file used to create the initial poller pod is available in /opt/KDMC00101/poller.yaml

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Earleen
2 hours ago
Alright, time to put my Kubernetes ninja skills to the test! I bet the exam writers are chuckling at us trying to figure this out.
upvoted 0 times
...
Ozell
11 days ago
Wait, so we have to edit the pod and service YAML files directly? No kubectl commands to do this? That's a bit old-school, but I guess it gets the job done.
upvoted 0 times
...
Elroy
12 days ago
The solution provided explains how to update the service and add the HAproxy container with the necessary configuration. We should follow those steps.
upvoted 0 times
...
Catalina
14 days ago
Yes, we need to add an HAproxy container named haproxy bound to port 90 to the poller pod.
upvoted 0 times
...
Kyoko
14 days ago
Hmm, the ConfigMap injection seems a bit tricky. Hope I don't mess up the haproxy.cfg file. Fingers crossed it all works as expected!
upvoted 0 times
...
Elroy
15 days ago
I think the task is asking us to update the nginxsvc service to serve on port 5050.
upvoted 0 times
...
Joanna
17 days ago
Okay, this looks straightforward. Update the service port, add the HAproxy container, and update the poller container's args. Gotta love these 'modify existing resources' tasks!
upvoted 0 times
Sage
1 days ago
Yeah, it's all about updating configurations and adding new containers.
upvoted 0 times
...
Jeff
5 days ago
Sounds like a fun challenge!
upvoted 0 times
...
...
Sage
18 days ago
The provided solution explanation seems clear and helpful though.
upvoted 0 times
...
Sage
19 days ago
I agree, updating the nginxsvc service and adding an HAproxy container requires attention to detail.
upvoted 0 times
...
Sage
22 days ago
I found the task in the exam quite challenging.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77