7월, 2023의 게시물 표시

Pod의 replica 수를 늘이거나 줄이는 방법 (kubectl scale)

kubectl scale 명령어를 사용하면 됩니다. 다음은 Kubernetes 공식 문서 상에 기재된 내용입니다. kubectl scale --replicas=3 rs/foo # Scale a replicaset named 'foo' to 3 kubectl scale --replicas=3 -f foo.yaml # Scale a resource specified in "foo.yaml" to 3 kubectl scale --current-replicas=2 --replicas=3 deployment/mysql # If the deployment named mysql's current size is 2, scale mysql to 3 kubectl scale --replicas=5 rc/foo rc/bar rc/baz # Scale multiple replication controllers 만일 Deployment에 의해 생성된 ReplicaSet이라면 Deployment를 대상으로 scale 합니다. 다음과 같은 느낌입니다. $ kubectl get pods -A aeug                tour-75866547dd-26tkt                  1/1     Running   0                 19h $ kubectl scale deployment/tour -n aeug --replicas=3 deployment.apps/tour scaled $ kubectl get pods -A | grep tour aeug                tour-75866547dd-26tkt...

와탭 쿠버네티스가 Desired pod 수를 계산하는 방법

이미지
와탭 쿠버네티스는 대시보드 화면, 위젯 등을 통해 Desired pod 정보를 제공합니다.  이 Desired pod 수는 다음과 같은 항목들로 구성되어 있습니다. ReplicaSet의 DESIRED 수 StatefulSet의 DESIRED 수 DaemonSet의 DESIRED 수 단독 Pod의 수 Desired pod 수와 함께 제공되는 Available pod 수도 동일한 기준으로 산출됩니다. 지금 바로  와탭 계정을 만들고  15일 동안 무료로 쿠버네티스 모니터링을 시작해보세요. 와탭 쿠버네티스는 어떠한 모니터링 자원없이도 시작할 수 있는 SaaS (Software as a Service) 제품입니다.