Able to check the container details of running emr pod

2

I would like to know the way/step to inspect the running driver/executor pods in emr on eks cluster. Do not find any steps specific to this use case. Please help me out. Thanks in advance.

Mark
질문됨 7달 전273회 조회
1개 답변
3
수락된 답변

Hello,

If you are running pods in EMR on EKS, there are a couple of ways you can inspect the containers. Direct method, you can check,

kubectl describe pod <pod-name> -n <name-space>

To check the logs of specific container that referred from above command,

kubectl logs pod <pod-name> -n <name-space> -c <container-name> -f

On the other hand, if you would like to check the resources and inspect containers in more details, you can login into the k8s cluster node and run the docker commands, Make sure you have ssh key configured in the eks cluster,

Generate the key for the later use,

ssh-keygen

Create the eks cluster with self-managed nodes,

eksctl create cluster --name $clusterName \
--nodegroup-name group-m5-large \
--node-type m5.large
--nodes-min 2 \
--nodes-max 4 \
--ssh-access --ssh-public-key /home/ec2-user/.ssh/id_rsa.pub.

SSh into the cluster's node and perform the below commands,

To check the list of running containers,

docker ps

To get details for the container

docker inspect 27787df99aea7

To login the container

docker exec -it 27787df99aea7 /bin/bash

To check the running processes inside the container,

bash-4.2$ ps -auxwww

AWS
지원 엔지니어
답변함 7달 전
profile picture
전문가
검토됨 7달 전
  • Thanks, this is helpful

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠