Udemy Labs - Certified Kubernetes Application Developer - Practice Test - Deployment strategies 오답노트

hyereen·2025년 1월 29일

Kubernetes

목록 보기
30/53

5
A new deployment called frontend-v2 has been created in the default namespace using the image kodekloud/webapp-color:v2. This deployment will be used to test a newer version of the same app.

Configure the deployment in such a way that the service called frontend-service routes less than 20% of traffic to the new deployment.
Do not increase the replicas of the frontend deployment.

정답
kubectl scale deployment --replicas=1 frontend-v2

풀이

  • 기존 설정에서는 frontend-v2에 2개의 pod가 있고, 트래픽의 29%가 그쪽으로 라우팅됨
  • 목표는 20% 미만의 트래픽을 frontend-v2에 할당하는 것이므로, frontend-v2 배포의 replica 수를 1로 줄여 트래픽을 17%로 낮춤

0개의 댓글