Amazon CloudWatch Observability EKS 추가 기능 설치 방법

조회 857 · 댓글 0
EEdwards작성자2024년 6월 26일
아래 3개 명령어를 차례대로 입력합니다.

--role-name, --cluster , --region, 그리고 계정번호(아래 예시는 222222333333)는 변경하여 사용해야 합니다.


eksctl utils associate-iam-oidc-provider --cluster my-eks-cluster --region ap-northeast-2 --approve

eksctl create iamserviceaccount \
--name cloudwatch-agent \
--namespace amazon-cloudwatch --cluster my-eks-cluster \
--region ap-northeast-2 \
--role-name my-eks-cluster-cw-account-role \
--attach-policy-arn arn:aws:iam::aws:policy/CloudWatchAgentServerPolicy \
--role-only \
--approve

aws eks create-addon --addon-name amazon-cloudwatch-observability --cluster-name my-eks-cluster --region ap-northeast-2 --service-account-role-arn arn:aws:iam::222222333333:role/my-eks-cluster-cw-account-role

로그인 후 답글을 남길 수 있습니다.