New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation CKA Exam - Topic 3 Question 49 Discussion

Actual exam question for Linux Foundation's CKA exam
Question #: 49
Topic #: 3
[All CKA Questions]

Score: 7%

Task

Reconfigure the existing deployment front-end and add a port specification named http exposing port 80/tcp of the existing container nginx.

Create a new service named front-end-svc exposing the container port http.

Configure the new service to also expose the individual Pods via a NodePort on the nodes on which they are scheduled.

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Carole
3 months ago
I thought NodePort was less secure than LoadBalancer, not sure about this approach.
upvoted 0 times
...
Glenn
3 months ago
Nice, this should help with scaling the front-end!
upvoted 0 times
...
Alpha
3 months ago
Wait, did they really specify the target port as 'tarport'? Seems like a typo.
upvoted 0 times
...
Lisbeth
4 months ago
Totally agree, this is a solid way to manage traffic!
upvoted 0 times
...
Raelene
4 months ago
Just a reminder, NodePort exposes the service on each node's IP.
upvoted 0 times
...
Van
4 months ago
I remember creating a service YAML file for a project, but I’m uncertain if I need to include the `type: NodePort` in the spec section or if it’s optional.
upvoted 0 times
...
Dottie
4 months ago
I believe the service needs to have a selector that matches the deployment labels, but I might be mixing that up with another topic.
upvoted 0 times
...
Irma
4 months ago
I practiced a similar question where we had to expose a service using NodePort, but I can't recall the exact syntax for the `kubectl expose` command.
upvoted 0 times
...
Kendra
5 months ago
I think I remember needing to edit the deployment to add the port specification, but I'm not sure if I need to use `kubectl edit` or if there's a better way.
upvoted 0 times
...
Ludivina
5 months ago
I'm a little confused about the difference between using `kubectl expose` and creating a service YAML file. I'll need to review the options and decide which approach makes the most sense for this task.
upvoted 0 times
...
Brandee
5 months ago
This seems pretty straightforward. I'm confident I can get this done quickly by following the steps in the explanation. The key will be making sure I get the service YAML file set up correctly.
upvoted 0 times
...
Dyan
5 months ago
Okay, I've got a plan. First, I'll use `kubectl get deploy front-end` to inspect the existing deployment. Then I'll edit the deployment to add the port specification. After that, I'll create the new service using the provided YAML example.
upvoted 0 times
...
Cristal
5 months ago
This looks like a straightforward deployment and service configuration task. I think I can handle this by following the steps in the explanation.
upvoted 0 times
...
Frederick
5 months ago
Hmm, I'm a bit unsure about the exact syntax for the service YAML file. I'll need to double-check the Kubernetes documentation to make sure I get the formatting right.
upvoted 0 times
...
Cherry
5 months ago
This one seems a bit tricky. I'll need to think it through carefully.
upvoted 0 times
...
Shoshana
5 months ago
Configuring TCP Insight on the Citrix ADM could be a good option, as that might provide more detailed insights into the connection patterns. But I'm not sure if that alone would trigger the alerts we need.
upvoted 0 times
...
Mozell
5 months ago
Okay, let me see. I think the key is to focus on the order of the steps. I'll try to visualize the process and see if that helps me identify the correct answer.
upvoted 0 times
...

Save Cancel