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.
Suggested Answer: A
Get Premium CKA Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
17 comments · newest first
CA
Carole
10 months ago
I thought NodePort was less secure than LoadBalancer, not sure about this approach.
GL
Glenn
11 months ago
Nice, this should help with scaling the front-end!
AL
Alpha
11 months ago
Wait, did they really specify the target port as 'tarport'? Seems like a typo.
LI
Lisbeth
11 months ago
Totally agree, this is a solid way to manage traffic!
RA
Raelene
11 months ago
Just a reminder, NodePort exposes the service on each node's IP.
VA
Van
12 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.
DO
Dottie
12 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.
IR
Irma
12 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.
KE
Kendra
1 year 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.
LU
Ludivina
1 year 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.
BR
Brandee
1 year 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.
DY
Dyan
1 year 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.
CR
Cristal
1 year ago
This looks like a straightforward deployment and service configuration task. I think I can handle this by following the steps in the explanation.
FR
Frederick
1 year 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.
CH
Cherry
1 year ago
This one seems a bit tricky. I'll need to think it through carefully.
SH
Shoshana
1 year 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.
MO
Mozell
1 year 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.