Valid CKA Dumps shared by ExamDiscuss.com for Helping Passing CKA Exam! ExamDiscuss.com now offer the newest CKA exam dumps, the ExamDiscuss.com CKA exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com CKA dumps with Test Engine here:
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.
Correct Answer:
See the solution below. Explanation Solution: kubectl get deploy front-end kubectl edit deploy front-end -o yaml #port specification named http #service.yaml apiVersion: v1 kind: Service metadata: name: front-end-svc labels: app: nginx spec: ports: - port: 80 protocol: tcp name: http selector: app: nginx type: NodePort # kubectl create -f service.yaml # kubectl get svc # port specification named http kubectl expose deployment front-end --name=front-end-svc --port=80 --tarport=80 --type=NodePort
Recent Comments (The most recent comments are at the top.)
Recent Comments (The most recent comments are at the top.)
kubectl expose deployment front-end --name front-end-svc --target-port 80 --type NodePort
It is the correct solution
can anyone provide a clear answer please ?