k8wiz
Kubernetes
Easy
Commands

Which command would you use to scale a deployment named 'nginx-deployment' to 5 replicas?

Select your answer:

Show answer and explanation

Answer: kubectl scale deployment nginx-deployment --replicas=5

Explanation

The 'kubectl scale deployment nginx-deployment --replicas=5' command is used to scale a deployment to a specified number of replicas. This adjusts the number of pods managed by the deployment.

Read more about Kubernetes