본문 바로가기

반응형

⭐ Kubernetes & EKS/명령어 모음

(4)
pod cpu 및 메모리 사용량 확인 # 실행중인 pod의 CPU 및 메모리의 사용량을 확인해보자. 1. 우선 top로 리소스를 확인하기 위해서는 Metric이 설치 되어 있어야 한다. # kubectl top nodes NAME CPU(cores) CPU% MEMORY(bytes) MEMORY% ap-northeast-2.compute.internal 65m 0% 600Mi 1% ap-northeast-2.compute.internal 65m 0% 668Mi 2 2. pod의 CPU와 Memory의 사용량을 확인하는 방법은 아래와 같다. kubectl top pod kubectl top pod -n [namespace_name] kubectl top pod [pod_name] -n [namespace_name] - 끝 -
eks 클러스터 확인 # 현재 어느 클러스터에 있는지 확인하는 명령어 kubectl cluster-info # 조회를 하면 어래와 같이 클러스터 정보가 나온다. kim:~/environment $ kubectl cluster-info Kubernetes control plane is running at https://111111111111111111111111.gr7.ap-northeast-2.eks.amazonaws.com CoreDNS is running at https://1111111111111111111111111.gr7.ap-northeast-2.eks.amazonaws.com/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy To further debug an..
쿠버네티스 주요명령어 모음 # 해당 pod가 어느 node에 있는지 확인하기 kubectl get pod -o wide ec2-user:~/environment/yaml $ kubectl get pod -o wide NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES deploy-jenkins-7dcdf75b94-7zrjx 0/1 Pending 0 54m deploy-jenkins-7dcdf75b94-gngq8 0/1 Pending 0 62m deploy-jenkins-7dcdf75b94-hbr5l 0/1 Pending 0 58m deploy-jenkins-7dcdf75b94-r2tq4 0/1 Pending 0 62m deploy-jenkins-7dcdf75..
쿠버네티스 주요 명령어 설명 - kubectl help 를 입력하면 아래와 같이 명령어들의 설명을 볼 수 있다. kubectl controls the Kubernetes cluster manager. Find more information at: https://kubernetes.io/docs/reference/kubectl/overview/ Basic Commands (Beginner): create Create a resource from a file or from stdin. expose Take a replication controller, service, deployment or pod and expose it as a new Kubernetes Service run Run a particular image on the c..

728x90
반응형