Exam CKA Topic 3 Question 27 Discussion

Actual exam question for Linux Foundation's CKA exam
Question #: 27
Topic #: 3
Create the service as type NodePort with the port 32767 for the nginx pod with the pod selector app: my-nginx

Suggested Answer:

kubectl run nginx --image=nginx --restart=Never -- labels=app=nginx --port=80 --dry-run -o yaml > nginx-pod.yaml

by Belinda at Aug 17, 2024, 11:13 AM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

0
0
0
10