tezvyn:

Create a Deployment with 3 replicas via kubectl

Source: interviewbeginner

WHAT IT TESTS: Basic kubectl Deployment fluency. OUTLINE: kubectl create deployment webapp --image=my-app:1.0, then kubectl scale to 3 replicas, or use --replicas if supported.

WHAT IT TESTS: Whether you can imperatively create and scale a Deployment. ANSWER OUTLINE: Run kubectl create deployment webapp --image=my-app:1.0 to make the Deployment, then kubectl scale deployment webapp --replicas=3 to reach three Pods; newer kubectl also accepts --replicas=3 directly on create. Mention that declarative YAML applied with kubectl apply is preferred in real workflows. RED FLAG: Using kubectl run (creates a bare Pod, not a Deployment), or assuming create alone sets replica count beyond one.

Read the original → interview

Get five bites like this every day.

Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.

Create a Deployment with 3 replicas via kubectl · Tezvyn