0 votes
in Kubernetes K8s by

What is the command to scale a Kubernetes Deployment?

a) kubectl scale deployment [name] –replicas=[number]

b) kubectl apply -f deployment.yaml

c) kubectl create deployment [name] –image=[image]

d) kubectl edit deployment [name]

1 Answer

0 votes
by

Answer: a)

Explanation: kubectl scale deployment [name] –replicas=[number]. This command scales the number of replicas of a Kubernetes Deployment with the specified name to the specified number.

...