EKSীࢲ Opentelemetry‫۽‬
ղ ௏٘о ੜ ‫ز‬੘ೞ‫ח‬૑ ‫פݽ‬ఠ݂ೞӝ
न੤അ
ߔূ٘ ѐߊ੗
ੋ‫ؚ‬౟௏ಌۨ੉࣌
য়‫ט‬਷ ‫঺ޖ‬ਸ ೞաਃ?
೽ૉৡ ജ҃ ҳ୷ ೞӝ OpenTelemetry‫ח‬ ‫ੋ঺ޖ‬оਃ? ࢲ࠺झ ߓನ&‫פݽ‬ఠ݂ ೞӝ ܻࣗझ ੿ܻ
೽ૉৡ ജ҃ ҳ୷ೞӝ
೽ૉৡ ജ҃ ҳ୷ೞӝ
1. EKS ੽ࣘਸ ਤೠ IAM ࢤࢿ
2. Cloud9 ࢤࢿ ߂ ੋૐ ੿ࠁ ࢸ੿
3. EKS ࢤࢿ
4. Helmਵ‫۽‬ grafana, jaeger ࢸ஖
IAM role ࢤࢿೞӝ
1. ই‫ې‬ ݂௼ܳ ׂ۞ IAM roleਸ ࢤࢿ೤‫׮פ‬.
https://console.aws.amazon.com/iam/home#/roles$new?
step=review&commonUseCase=EC2%2BEC2&selectedUseCase=EC2&po
licies=arn:aws:iam::aws:policy%2FAdministratorAccess
2. role ੉ܴਸ ੸‫ח‬ ಬ੉ աৢ‫ٸ‬ ө૑ Next ߡౡਸ ׂ۞઱ࣁਃ
3. role ੉ܴਸ cday-apm-handsonਵ‫۽‬ ੑ۱ೞҊ Create role ߡౡਸ ׂ۞઱ࣁਃ
Cloud9 ࢤࢿ
1. Cloud9 ௑ࣛী ੽ࣘೞ࣊ࢲ Create Environment ߡౡਸ ௿ܼ೤‫׮פ‬.
2. ੉ܴ਷ aws-cloud9-apm ਵ‫۽‬ ա‫ݠ‬૑‫ח‬ ࣻ੿হ੉ Cloud9 ࢤࢿਸ ৮‫ܐ‬೤‫׮פ‬.
3. Cloud9੉ ࢤࢿ‫ؼ‬ ‫ٸ‬ ө૑ ӝ‫׮פ݀׮‬.
Cloud9 ജ҃ ࢸ੿
4. Cloud9੉ ‫ݶڰ‬ R‫۽‬ द੘ೞ‫ח‬ ೐‫۽‬೙ ߡౡਸ ௿ܼ > manage EC2 Instance ௿ܼ
Cloud9 ജ҃ ࢸ੿
5. Cloud9 ੋझఢझ ࢶఖ > Actions ௿ܼ > Security ௿ܼ > Modify Iam role ௿ܼ
Cloud9 ജ҃ ࢸ੿
6. ߑӘ ݅ٚ cday-apm-handson role ࢶఖറ ੷੢
Cloud9 ജ҃ ࢸ੿
7. Cloud9 ࢸ੿ > AWS ࢸ੿ > Credentials > AWS ੐द ష௾ ࢎਊ ࠺ഝࢿച
Cloud9 ജ҃ ࢸ੿
8. ઝஏ ࢎ੉٘߄੄ AWS‫۽‬Ҋ ௿ܼद ਋ஏ ೞ‫ױ‬ী ec2:instance ‫ۄ‬Ҋ ‫חڰ‬૑ ഛੋ
EKS ѐߊ ജ҃ ҳ୷
1. ೽ૉৡ ۨನ ‫׮‬਍‫٘۽‬
git clone https://github.com/wesky93/cday-2021-apm-handson.git
cd cday-2021-apm-handson/
EKS ѐߊ ജ҃ ҳ୷
2. SSH ః ࢤࢿ ߂ EC2ী SSHః ١‫۾‬
ssh-keygen
# enter 3ߣ ೞӝ
aws ec2 import-key-pair 
--region ap-northeast-2 
--key-name "cday-handson" 
--public-key-material file://~/.ssh/id_rsa.pub
EKS ѐߊ ജ҃ ҳ୷
3. eksctl ࢸ஖
curl --silent 
--location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" 
| tar xz -C /tmp
sudo mv -v /tmp/eksctl /usr/local/bin
# ࢸ஖ ഛੋ
eksctl version
EKS ѐߊ ജ҃ ҳ୷
4. kubectl ࢸ஖
# kubectl ‫׮‬਍‫٘۽‬
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
# kubectl ࢸ஖
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
# ࢸ஖ ഛੋ
kubectl version --client
EKS ѐߊ ജ҃ ҳ୷
5. AWS IAM Authenticator
curl -o aws-iam-authenticator 
https://amazon-eks.s3.us-west-2.amazonaws.com/1.19.6/2021-01-05/bin/linux/amd64/aws-iam-authenticator
chmod +x ./aws-iam-authenticator
mkdir -p $HOME/bin 
&& cp ./aws-iam-authenticator $HOME/bin/aws-iam-authenticator 
&& export PATH=$PATH:$HOME/bin
echo 'export PATH=$PATH:$HOME/bin' >> ~/.bashrc
aws-iam-authenticator help
EKS ѐߊ ജ҃ ҳ୷
6. Helm ࢸ஖
curl -fsSL -o get_helm.sh 
https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh
EKS ௿۞झఠ ࢤࢿ
eksctl create cluster 
--name apm-cluster 
--region ap-northeast-2 
--with-oidc 
--ssh-access=true 
--ssh-public-key ~/.ssh/id_rsa.pub 
--managed
# eks ੽ࣘ
kubectl get nodes
Helm repo ୶о
helm repo add grafana https://grafana.github.io/helm-charts
helm repo add incubator https://charts.helm.sh/incubator
helm repo add jaegertracing https://jaegertracing.github.io/helm-charts
helm repo update
Helm chart ࢸ஖
# grafana ࢸ஖
helm install grafana grafana/grafana 
--set adminPassword="cday-handson" 
--set service.type=LoadBalancer
# jaeger ࢸ஖
helm install jaeger jaegertracing/jaeger-operator 
--set rbac.clusterRole=true
Grafana ੽ࣘ
# grafana ઱ࣗ ഛੋ ߂ ੽ࣘ
kubectl get all -n default | grep service/grafana
# ID : admin PW : cday-handson
An observability framework for cloud-native software
APM
APM ࣛ‫࣌ܖ‬
Image caption 1 Image caption 2 Image caption 3
Image caption 4 Image caption 5 Image caption 6
EKS에서 Opentelemetry로 코드실행 모니터링하기 - 신재현 (인덴트코퍼레이션) :: AWS Community Day Online 2021
ࢲ࠺झ ߓನ & ‫פݽ‬ఠ݂
ॉ֎ੌ ࢲ࠺झ ߓನ
kubectl apply -f k8s/
# ॉ֎ੌ ࢲ࠺झ ઱ࣗ ഛੋ
kubectl get all -n default | grep service/thumbnail-app-srv
<ॉ֎ੌ ࢲ࠺झ ઱ࣗ>/docs ‫۽‬ ੽ࣘ
1. crop, resize, smartcrop ী пп ই‫ې‬ чਸ ֍যࢲ Ѿҗܳ ഛੋ ೤‫׮פ‬.
URL_1 : https://images.chosun.com/resizer/a5YP6FNZMLmdoSmJCXiQJcN25Fw=/
540x799/smart/cloudfront-ap-northeast-1.images.arcpublishing.com/chosun/
CFCFB3LGQ75OBNIYD36LN74FHQ.jpg
URL_2 : https://naver.com
Width : 200
Height: 200
ॉ֎ੌ ࢲ࠺झ పझ౟
1. Grafana ীࢲ ࢸ੿ > ‫੉ؘ‬ఠ ࣗझ > ‫੉ؘ‬ఠ ࣗझ ୶о > jaeger ࢶఖ
2. ই‫ې‬ ઱ࣗܳ urlী ੑ۱റ save&test ௿ܼ
URL : jaeger-query.default.svc.cluster.local:16686
Grafanaী jaeger ‫੉ؘ‬ఠࣗझ ୶о
1. crop җ smart cropਃ୒ਸ ࠺Ү೧ࠇ‫׮פ‬.
2. п span੄ ‫ݫ‬ఋ‫੉ؘ‬ఠܳ ഛੋ ೤‫׮פ‬.
3. namespaceо defaultੋ ਃ୒݅ ଺ইࠇ‫׮פ‬.
4. ী۞о ߊࢤೠ ਃ୒݅ ଺ইࠇ‫׮פ‬.
Grafana explore ীࢲ ਃ୒ ௪ܻ೧ࠁӝ
ܻࣗझ ੿ܻೞӝ
K8S ܻࣗझ ੿ܻ
kubectl delete -f k8s/
helm uninstall grafana
helm uninstall jaeger
# ࢏ઁ ⪟‫ח‬૑ ഛੋ
kubectl get all -n default
# EKS ࢏ઁ
eksctl delete cluster --name apm-cluster --region ap-northeast-2
AWS ܻࣗझ ੿ܻ
1. Cloud9 ࢏ઁ
https://ap-northeast-2.console.aws.amazon.com/cloudformation/home?
region=ap-northeast-2#/stacks?filteringStatus=active&filteringText=aws-
cloud9-aws-cloud9-apm&viewNested=true&hideStacks=false&stackId=
2. EC2 key-pair ࢏ઁ
3. IAM ࢏ઁ
хࢎ೤‫!׮פ‬
May the trace with you!

More Related Content

PDF
CloudWatch 성능 모니터링과 신속한 대응을 위한 노하우 - 박선용 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming
PDF
Datadog을 활용한 Elastic Kubernetes Service(EKS)에서의 마이크로서비스 통합 가시성 - 정영석 시니어 세일즈 ...
PDF
Amazon SageMaker 모델 배포 방법 소개::김대근, AI/ML 스페셜리스트 솔루션즈 아키텍트, AWS::AWS AIML 스페셜 웨비나
PDF
ksqlDB로 실시간 데이터 변환 및 스트림 처리
PDF
Amazon EKS를 위한 AWS CDK와 CDK8s 활용법 - 염지원, 김광영 AWS 솔루션즈 아키텍트 :: AWS Summit Seou...
PDF
AWS 상의 컨테이너 서비스 소개 ECS, EKS - 이종립 / Principle Enterprise Evangelist @베스핀글로벌
PDF
Kubernetes Architecture | Understanding Kubernetes Components | Kubernetes Tu...
PDF
쿠버네티스를 이용한 기능 브랜치별 테스트 서버 만들기 (GitOps CI/CD)
CloudWatch 성능 모니터링과 신속한 대응을 위한 노하우 - 박선용 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming
Datadog을 활용한 Elastic Kubernetes Service(EKS)에서의 마이크로서비스 통합 가시성 - 정영석 시니어 세일즈 ...
Amazon SageMaker 모델 배포 방법 소개::김대근, AI/ML 스페셜리스트 솔루션즈 아키텍트, AWS::AWS AIML 스페셜 웨비나
ksqlDB로 실시간 데이터 변환 및 스트림 처리
Amazon EKS를 위한 AWS CDK와 CDK8s 활용법 - 염지원, 김광영 AWS 솔루션즈 아키텍트 :: AWS Summit Seou...
AWS 상의 컨테이너 서비스 소개 ECS, EKS - 이종립 / Principle Enterprise Evangelist @베스핀글로벌
Kubernetes Architecture | Understanding Kubernetes Components | Kubernetes Tu...
쿠버네티스를 이용한 기능 브랜치별 테스트 서버 만들기 (GitOps CI/CD)

What's hot (20)

PDF
[WhaTap DevOps Day] 세션 1 : Observability Practice on AWS
PDF
PUBG: Battlegrounds 라이브 서비스 EKS 전환 사례 공유 [크래프톤 - 레벨 300] - 발표자: 김정헌, PUBG Dev...
PDF
게임서비스를 위한 ElastiCache 활용 전략 :: 구승모 솔루션즈 아키텍트 :: Gaming on AWS 2016
PDF
AWS Transit Gateway를 통한 Multi-VPC 아키텍처 패턴 - 강동환 솔루션즈 아키텍트, AWS :: AWS Summit ...
PDF
AWS Summit Seoul 2023 | Amazon EKS, 중요한 건 꺾이지 않는 안정성
PDF
카카오 광고 플랫폼 MSA 적용 사례 및 API Gateway와 인증 구현에 대한 소개
PDF
Apache kafka performance(throughput) - without data loss and guaranteeing dat...
PDF
Service mesh(istio) monitoring
PDF
사례로 알아보는 Database Migration Service : 데이터베이스 및 데이터 이관, 통합, 분리, 분석의 도구 - 발표자: ...
PDF
AWS 고객이 주로 겪는 운영 이슈에 대한 해법-AWS Summit Seoul 2017
PDF
대용량 트래픽을 처리하는 최적의 서버리스 애플리케이션 - 안효빈, 구성완 AWS 솔루션즈 아키텍트 :: AWS Summit Seoul 2021
PDF
AWS Summit Seoul 2023 | 당신만 모르고 있는 AWS 컨트롤 타워 트렌드
PDF
아키텍처 현대화 분야 신규 서비스 - 주성식, AWS 솔루션즈 아키텍트 :: AWS re:Invent re:Cap 2021
PDF
[오픈소스컨설팅]Scouter 설치 및 사용가이드(JBoss)
PDF
Kubernetes Deployment Strategies
PDF
마이크로서비스를 위한 AWS 아키텍처 패턴 및 모범 사례 - AWS Summit Seoul 2017
PPTX
EKS workshop 살펴보기
PDF
AWS Summit Seoul 2023 | SOCAR는 어떻게 2만대의 차량을 운영할까?: IoT Data의 수집부터 분석까지
PDF
Amazon DocumentDB vs MongoDB 의 내부 아키텍쳐 와 장단점 비교
PPTX
4. 대용량 아키텍쳐 설계 패턴
[WhaTap DevOps Day] 세션 1 : Observability Practice on AWS
PUBG: Battlegrounds 라이브 서비스 EKS 전환 사례 공유 [크래프톤 - 레벨 300] - 발표자: 김정헌, PUBG Dev...
게임서비스를 위한 ElastiCache 활용 전략 :: 구승모 솔루션즈 아키텍트 :: Gaming on AWS 2016
AWS Transit Gateway를 통한 Multi-VPC 아키텍처 패턴 - 강동환 솔루션즈 아키텍트, AWS :: AWS Summit ...
AWS Summit Seoul 2023 | Amazon EKS, 중요한 건 꺾이지 않는 안정성
카카오 광고 플랫폼 MSA 적용 사례 및 API Gateway와 인증 구현에 대한 소개
Apache kafka performance(throughput) - without data loss and guaranteeing dat...
Service mesh(istio) monitoring
사례로 알아보는 Database Migration Service : 데이터베이스 및 데이터 이관, 통합, 분리, 분석의 도구 - 발표자: ...
AWS 고객이 주로 겪는 운영 이슈에 대한 해법-AWS Summit Seoul 2017
대용량 트래픽을 처리하는 최적의 서버리스 애플리케이션 - 안효빈, 구성완 AWS 솔루션즈 아키텍트 :: AWS Summit Seoul 2021
AWS Summit Seoul 2023 | 당신만 모르고 있는 AWS 컨트롤 타워 트렌드
아키텍처 현대화 분야 신규 서비스 - 주성식, AWS 솔루션즈 아키텍트 :: AWS re:Invent re:Cap 2021
[오픈소스컨설팅]Scouter 설치 및 사용가이드(JBoss)
Kubernetes Deployment Strategies
마이크로서비스를 위한 AWS 아키텍처 패턴 및 모범 사례 - AWS Summit Seoul 2017
EKS workshop 살펴보기
AWS Summit Seoul 2023 | SOCAR는 어떻게 2만대의 차량을 운영할까?: IoT Data의 수집부터 분석까지
Amazon DocumentDB vs MongoDB 의 내부 아키텍쳐 와 장단점 비교
4. 대용량 아키텍쳐 설계 패턴
Ad

Similar to EKS에서 Opentelemetry로 코드실행 모니터링하기 - 신재현 (인덴트코퍼레이션) :: AWS Community Day Online 2021 (7)

PDF
DevOps_project.pdf
PDF
EKS Workshop
PDF
What Is AWS Elastic Kubernetes Service
PDF
Managing Terraform Module Versioning and Dependencies
PDF
[AWS Dev Day] 앱 현대화 | DevOps 개발자가 되기 위한 쿠버네티스 핵심 활용 예제 알아보기 - 정영준 AWS 솔루션즈 아키...
PPTX
Kubernetes security with AWS
PDF
kubernetes on awsjourneryssdddddddddddddd
DevOps_project.pdf
EKS Workshop
What Is AWS Elastic Kubernetes Service
Managing Terraform Module Versioning and Dependencies
[AWS Dev Day] 앱 현대화 | DevOps 개발자가 되기 위한 쿠버네티스 핵심 활용 예제 알아보기 - 정영준 AWS 솔루션즈 아키...
Kubernetes security with AWS
kubernetes on awsjourneryssdddddddddddddd
Ad

More from AWSKRUG - AWS한국사용자모임 (20)

PDF
IaC로 AWS인프라 관리하기 - 이진성 (AUSG) :: AWS Community Day Online 2021
PPTX
Docker를 활용한 손쉬운 ECS 활용기 - 김민태 (AUSG) :: AWS Community Day Online 2021
PDF
AWS와 함께하는 무중단 배포 파이프라인 개선기 - 황성찬 (AUSG) :: AWS Community Day Online 2021
PDF
보안을 위한 AWS Network 구성 - 우수연 (AUSG) :: AWS Community Day Online 2021
PDF
자연어 처리 ML모델을 활용한 이커머스 문제 해결하기 - 진현두 (카카오스타일) :: AWS Community Day Online 2021
PDF
Athena & Step Function 으로 통계 파이프라인 구축하기 - 변규현 (당근마켓) :: AWS Community Day Onl...
PPTX
자바개발자가 최대한 빠르게 서비스를 오픈하는 방법 - 최진환 (드라마앤컴퍼니) :: AWS Community Day Online 2021
PDF
스타트업 나홀로 데이터 엔지니어: 데이터 분석 환경 구축기 - 천지은 (Tappytoon) :: AWS Community Day Onlin...
PDF
커뮤니티 빌더를 아시나요? - 윤평호(AWSKRUG) :: AWS Community Day Online 2021
PDF
복잡한 권한신청문제 ConsoleMe로 해결하기 - 손건 (AB180) :: AWS Community Day Online 2021
PDF
ECS to EKS 마이그레이션 경험기 - 유용환(Superb AI) :: AWS Community Day Online 2021
PDF
복잡한 기존 시스템에 피쳐 애드업 후기 - 김태웅(브랜디) :: AWS Community Day Online 2021
PDF
Amazon EKS로 간단한 웹 애플리케이션 구축하기 - 김주영 (AWS) :: AWS Community Day Online 2021
PDF
[AWS Hero 스페셜] 서버리스 기반 검색 서비스 구축하기 - 이상현(스마일벤처스) :: AWS Community Day Online ...
PDF
초기 스타트업의 AWS - 김지훈(투어라이브) :: AWS Community Day Online 2020
PDF
[AWS Hero 스페셜] Amazon Personalize를 통한 개인화/추천 서비스 개발 노하우 - 소성운(크로키닷컴) :: AWS C...
PPTX
goployer, 코드 기반의 배포 도구 - 송주영 (beNX) :: AWS Community Day 2020
PDF
온라인 주문 서비스를 서버리스 아키텍쳐로 구축하기 - 김태우(Classmethod) :: AWS Community Day Online 2020
PDF
엔터프라이즈 기업을 위한 Digital 플랫폼 구축 사례 - 권낙주(SK C&C) :: AWS Community Day Online 2020
PDF
AWS Cloud Development Kit (CDK)를 이용한 코드 기반 인프라 개발 및 배포 - 공찬호(리얼리티매직) :: AWS C...
IaC로 AWS인프라 관리하기 - 이진성 (AUSG) :: AWS Community Day Online 2021
Docker를 활용한 손쉬운 ECS 활용기 - 김민태 (AUSG) :: AWS Community Day Online 2021
AWS와 함께하는 무중단 배포 파이프라인 개선기 - 황성찬 (AUSG) :: AWS Community Day Online 2021
보안을 위한 AWS Network 구성 - 우수연 (AUSG) :: AWS Community Day Online 2021
자연어 처리 ML모델을 활용한 이커머스 문제 해결하기 - 진현두 (카카오스타일) :: AWS Community Day Online 2021
Athena & Step Function 으로 통계 파이프라인 구축하기 - 변규현 (당근마켓) :: AWS Community Day Onl...
자바개발자가 최대한 빠르게 서비스를 오픈하는 방법 - 최진환 (드라마앤컴퍼니) :: AWS Community Day Online 2021
스타트업 나홀로 데이터 엔지니어: 데이터 분석 환경 구축기 - 천지은 (Tappytoon) :: AWS Community Day Onlin...
커뮤니티 빌더를 아시나요? - 윤평호(AWSKRUG) :: AWS Community Day Online 2021
복잡한 권한신청문제 ConsoleMe로 해결하기 - 손건 (AB180) :: AWS Community Day Online 2021
ECS to EKS 마이그레이션 경험기 - 유용환(Superb AI) :: AWS Community Day Online 2021
복잡한 기존 시스템에 피쳐 애드업 후기 - 김태웅(브랜디) :: AWS Community Day Online 2021
Amazon EKS로 간단한 웹 애플리케이션 구축하기 - 김주영 (AWS) :: AWS Community Day Online 2021
[AWS Hero 스페셜] 서버리스 기반 검색 서비스 구축하기 - 이상현(스마일벤처스) :: AWS Community Day Online ...
초기 스타트업의 AWS - 김지훈(투어라이브) :: AWS Community Day Online 2020
[AWS Hero 스페셜] Amazon Personalize를 통한 개인화/추천 서비스 개발 노하우 - 소성운(크로키닷컴) :: AWS C...
goployer, 코드 기반의 배포 도구 - 송주영 (beNX) :: AWS Community Day 2020
온라인 주문 서비스를 서버리스 아키텍쳐로 구축하기 - 김태우(Classmethod) :: AWS Community Day Online 2020
엔터프라이즈 기업을 위한 Digital 플랫폼 구축 사례 - 권낙주(SK C&C) :: AWS Community Day Online 2020
AWS Cloud Development Kit (CDK)를 이용한 코드 기반 인프라 개발 및 배포 - 공찬호(리얼리티매직) :: AWS C...

Recently uploaded (20)

PPT
Geologic Time for studying geology for geologist
PDF
WOOl fibre morphology and structure.pdf for textiles
PDF
Developing a website for English-speaking practice to English as a foreign la...
PPTX
Benefits of Physical activity for teenagers.pptx
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PDF
A review of recent deep learning applications in wood surface defect identifi...
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
DOCX
search engine optimization ppt fir known well about this
PPT
Module 1.ppt Iot fundamentals and Architecture
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
A contest of sentiment analysis: k-nearest neighbor versus neural network
PDF
Unlock new opportunities with location data.pdf
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PPT
What is a Computer? Input Devices /output devices
PPTX
The various Industrial Revolutions .pptx
PDF
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
PDF
A novel scalable deep ensemble learning framework for big data classification...
Geologic Time for studying geology for geologist
WOOl fibre morphology and structure.pdf for textiles
Developing a website for English-speaking practice to English as a foreign la...
Benefits of Physical activity for teenagers.pptx
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
A review of recent deep learning applications in wood surface defect identifi...
Univ-Connecticut-ChatGPT-Presentaion.pdf
search engine optimization ppt fir known well about this
Module 1.ppt Iot fundamentals and Architecture
1 - Historical Antecedents, Social Consideration.pdf
A contest of sentiment analysis: k-nearest neighbor versus neural network
Unlock new opportunities with location data.pdf
A comparative study of natural language inference in Swahili using monolingua...
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
Assigned Numbers - 2025 - Bluetooth® Document
What is a Computer? Input Devices /output devices
The various Industrial Revolutions .pptx
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
A novel scalable deep ensemble learning framework for big data classification...

EKS에서 Opentelemetry로 코드실행 모니터링하기 - 신재현 (인덴트코퍼레이션) :: AWS Community Day Online 2021

  • 1. EKSীࢲ Opentelemetry‫۽‬ ղ ௏٘о ੜ ‫ز‬੘ೞ‫ח‬૑ ‫פݽ‬ఠ݂ೞӝ न੤അ ߔূ٘ ѐߊ੗ ੋ‫ؚ‬౟௏ಌۨ੉࣌
  • 2. য়‫ט‬਷ ‫঺ޖ‬ਸ ೞաਃ? ೽ૉৡ ജ҃ ҳ୷ ೞӝ OpenTelemetry‫ח‬ ‫ੋ঺ޖ‬оਃ? ࢲ࠺झ ߓನ&‫פݽ‬ఠ݂ ೞӝ ܻࣗझ ੿ܻ
  • 4. ೽ૉৡ ജ҃ ҳ୷ೞӝ 1. EKS ੽ࣘਸ ਤೠ IAM ࢤࢿ 2. Cloud9 ࢤࢿ ߂ ੋૐ ੿ࠁ ࢸ੿ 3. EKS ࢤࢿ 4. Helmਵ‫۽‬ grafana, jaeger ࢸ஖
  • 5. IAM role ࢤࢿೞӝ 1. ই‫ې‬ ݂௼ܳ ׂ۞ IAM roleਸ ࢤࢿ೤‫׮פ‬. https://console.aws.amazon.com/iam/home#/roles$new? step=review&commonUseCase=EC2%2BEC2&selectedUseCase=EC2&po licies=arn:aws:iam::aws:policy%2FAdministratorAccess 2. role ੉ܴਸ ੸‫ח‬ ಬ੉ աৢ‫ٸ‬ ө૑ Next ߡౡਸ ׂ۞઱ࣁਃ 3. role ੉ܴਸ cday-apm-handsonਵ‫۽‬ ੑ۱ೞҊ Create role ߡౡਸ ׂ۞઱ࣁਃ
  • 6. Cloud9 ࢤࢿ 1. Cloud9 ௑ࣛী ੽ࣘೞ࣊ࢲ Create Environment ߡౡਸ ௿ܼ೤‫׮פ‬. 2. ੉ܴ਷ aws-cloud9-apm ਵ‫۽‬ ա‫ݠ‬૑‫ח‬ ࣻ੿হ੉ Cloud9 ࢤࢿਸ ৮‫ܐ‬೤‫׮פ‬. 3. Cloud9੉ ࢤࢿ‫ؼ‬ ‫ٸ‬ ө૑ ӝ‫׮פ݀׮‬.
  • 7. Cloud9 ജ҃ ࢸ੿ 4. Cloud9੉ ‫ݶڰ‬ R‫۽‬ द੘ೞ‫ח‬ ೐‫۽‬೙ ߡౡਸ ௿ܼ > manage EC2 Instance ௿ܼ
  • 8. Cloud9 ജ҃ ࢸ੿ 5. Cloud9 ੋझఢझ ࢶఖ > Actions ௿ܼ > Security ௿ܼ > Modify Iam role ௿ܼ
  • 9. Cloud9 ജ҃ ࢸ੿ 6. ߑӘ ݅ٚ cday-apm-handson role ࢶఖറ ੷੢
  • 10. Cloud9 ജ҃ ࢸ੿ 7. Cloud9 ࢸ੿ > AWS ࢸ੿ > Credentials > AWS ੐द ష௾ ࢎਊ ࠺ഝࢿച
  • 11. Cloud9 ജ҃ ࢸ੿ 8. ઝஏ ࢎ੉٘߄੄ AWS‫۽‬Ҋ ௿ܼद ਋ஏ ೞ‫ױ‬ী ec2:instance ‫ۄ‬Ҋ ‫חڰ‬૑ ഛੋ
  • 12. EKS ѐߊ ജ҃ ҳ୷ 1. ೽ૉৡ ۨನ ‫׮‬਍‫٘۽‬ git clone https://github.com/wesky93/cday-2021-apm-handson.git cd cday-2021-apm-handson/
  • 13. EKS ѐߊ ജ҃ ҳ୷ 2. SSH ః ࢤࢿ ߂ EC2ী SSHః ١‫۾‬ ssh-keygen # enter 3ߣ ೞӝ aws ec2 import-key-pair --region ap-northeast-2 --key-name "cday-handson" --public-key-material file://~/.ssh/id_rsa.pub
  • 14. EKS ѐߊ ജ҃ ҳ୷ 3. eksctl ࢸ஖ curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp sudo mv -v /tmp/eksctl /usr/local/bin # ࢸ஖ ഛੋ eksctl version
  • 15. EKS ѐߊ ജ҃ ҳ୷ 4. kubectl ࢸ஖ # kubectl ‫׮‬਍‫٘۽‬ curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" # kubectl ࢸ஖ sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl # ࢸ஖ ഛੋ kubectl version --client
  • 16. EKS ѐߊ ജ҃ ҳ୷ 5. AWS IAM Authenticator curl -o aws-iam-authenticator https://amazon-eks.s3.us-west-2.amazonaws.com/1.19.6/2021-01-05/bin/linux/amd64/aws-iam-authenticator chmod +x ./aws-iam-authenticator mkdir -p $HOME/bin && cp ./aws-iam-authenticator $HOME/bin/aws-iam-authenticator && export PATH=$PATH:$HOME/bin echo 'export PATH=$PATH:$HOME/bin' >> ~/.bashrc aws-iam-authenticator help
  • 17. EKS ѐߊ ജ҃ ҳ୷ 6. Helm ࢸ஖ curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 chmod 700 get_helm.sh ./get_helm.sh
  • 18. EKS ௿۞झఠ ࢤࢿ eksctl create cluster --name apm-cluster --region ap-northeast-2 --with-oidc --ssh-access=true --ssh-public-key ~/.ssh/id_rsa.pub --managed # eks ੽ࣘ kubectl get nodes
  • 19. Helm repo ୶о helm repo add grafana https://grafana.github.io/helm-charts helm repo add incubator https://charts.helm.sh/incubator helm repo add jaegertracing https://jaegertracing.github.io/helm-charts helm repo update
  • 20. Helm chart ࢸ஖ # grafana ࢸ஖ helm install grafana grafana/grafana --set adminPassword="cday-handson" --set service.type=LoadBalancer # jaeger ࢸ஖ helm install jaeger jaegertracing/jaeger-operator --set rbac.clusterRole=true
  • 21. Grafana ੽ࣘ # grafana ઱ࣗ ഛੋ ߂ ੽ࣘ kubectl get all -n default | grep service/grafana # ID : admin PW : cday-handson
  • 22. An observability framework for cloud-native software
  • 23. APM
  • 24. APM ࣛ‫࣌ܖ‬ Image caption 1 Image caption 2 Image caption 3 Image caption 4 Image caption 5 Image caption 6
  • 26. ࢲ࠺झ ߓನ & ‫פݽ‬ఠ݂
  • 27. ॉ֎ੌ ࢲ࠺झ ߓನ kubectl apply -f k8s/ # ॉ֎ੌ ࢲ࠺झ ઱ࣗ ഛੋ kubectl get all -n default | grep service/thumbnail-app-srv <ॉ֎ੌ ࢲ࠺झ ઱ࣗ>/docs ‫۽‬ ੽ࣘ
  • 28. 1. crop, resize, smartcrop ী пп ই‫ې‬ чਸ ֍যࢲ Ѿҗܳ ഛੋ ೤‫׮פ‬. URL_1 : https://images.chosun.com/resizer/a5YP6FNZMLmdoSmJCXiQJcN25Fw=/ 540x799/smart/cloudfront-ap-northeast-1.images.arcpublishing.com/chosun/ CFCFB3LGQ75OBNIYD36LN74FHQ.jpg URL_2 : https://naver.com Width : 200 Height: 200 ॉ֎ੌ ࢲ࠺झ పझ౟
  • 29. 1. Grafana ীࢲ ࢸ੿ > ‫੉ؘ‬ఠ ࣗझ > ‫੉ؘ‬ఠ ࣗझ ୶о > jaeger ࢶఖ 2. ই‫ې‬ ઱ࣗܳ urlী ੑ۱റ save&test ௿ܼ URL : jaeger-query.default.svc.cluster.local:16686 Grafanaী jaeger ‫੉ؘ‬ఠࣗझ ୶о
  • 30. 1. crop җ smart cropਃ୒ਸ ࠺Ү೧ࠇ‫׮פ‬. 2. п span੄ ‫ݫ‬ఋ‫੉ؘ‬ఠܳ ഛੋ ೤‫׮פ‬. 3. namespaceо defaultੋ ਃ୒݅ ଺ইࠇ‫׮פ‬. 4. ী۞о ߊࢤೠ ਃ୒݅ ଺ইࠇ‫׮פ‬. Grafana explore ীࢲ ਃ୒ ௪ܻ೧ࠁӝ
  • 32. K8S ܻࣗझ ੿ܻ kubectl delete -f k8s/ helm uninstall grafana helm uninstall jaeger # ࢏ઁ ⪟‫ח‬૑ ഛੋ kubectl get all -n default # EKS ࢏ઁ eksctl delete cluster --name apm-cluster --region ap-northeast-2
  • 33. AWS ܻࣗझ ੿ܻ 1. Cloud9 ࢏ઁ https://ap-northeast-2.console.aws.amazon.com/cloudformation/home? region=ap-northeast-2#/stacks?filteringStatus=active&filteringText=aws- cloud9-aws-cloud9-apm&viewNested=true&hideStacks=false&stackId= 2. EC2 key-pair ࢏ઁ 3. IAM ࢏ઁ