exam questions

Exam CKA All Questions

View all questions & answers for the CKA exam

Exam CKA topic 1 question 22 discussion

Actual exam question from CNCF's CKA
Question #: 22
Topic #: 1
[All CKA Questions]

SIMULATION
-






Task
-

Scale the deployment guestbook to 5 pods.

Show Suggested Answer Hide Answer
Suggested Answer: apiVersion: v1 kind: Pod metadata: name: nginx-kusc00401 spec: containers: - name: nginx-kusc00401 image: nginx nodeSelector: disk=ssd

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
LiamNg
Highly Voted 1 year ago
kubectl config use-context k8s kubectl scale deployment guestbook --replicas=5
upvoted 5 times
...
billybutcher05
Most Recent 5 months, 2 weeks ago
k scale deployment guestbook --replicas=6
upvoted 2 times
...
Stargazer11
11 months, 2 weeks ago
Use imperative command kubectl scale --replicas=5 deployment/guestbook
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago