본문 바로가기

전체 글

AEWS 2기 5주차 두번째 6. Karpenter : K8S Native AutoScaler 소개 : 오픈소스 노드 수명 주기 관리 솔루션, 몇 초 만에 컴퓨팅 리소스 제공 - https://ec2spotworkshops.com/karpenter.html Getting Started with Karpenter 실습 : Docs Intro : 복잡도를 줄이기 위해서 신규 EKS(myeks2) 환경에서 실습 진행 - TeamGithub Chart # YAML 파일 다운로드 curl -O https://s3.ap-northeast-2.amazonaws.com/cloudformation.cloudneta.net/K8S/karpenter-preconfig.yaml # CloudFormation 스택 배포 예시) aws cloudformat.. 더보기
AEWS 2기 5주차 첫번째 5주차 스터디 공유 시작하겠습니다. 1. HPA - Horizontal Pod Autoscaler 실습 : kube-ops-view 와 그라파나(17125)에서 모니터링 같이 해보자 - 링크 Docs k8s Horizontal Pod Autoscaling In Kubernetes, a HorizontalPodAutoscaler automatically updates a workload resource (such as a Deployment or StatefulSet), with the aim of automatically scaling the workload to match demand. Horizontal scaling means that the response to increased load is t.. 더보기
AEWS 2기 4주차 세번째 그라파나 Grafana 소개 및 웹 접속 : TSDB 데이터를 시각화, 다양한 데이터 형식 지원(메트릭, 로그, 트레이스 등) - 링크 9.5 Docs About Grafana | Grafana documentation Thank you! Your message has been received! grafana.com Grafana open source software enables you to query, visualize, alert on, and explore your metrics, logs, and traces wherever they are stored. Grafana OSS provides you with tools to turn your time-series database (TSDB) da.. 더보기
AEWS 2기 4주차 두번째 프로메테우스-스택 소개 : Prometheus is an open-source systems monitoring and alerting toolkit originally built at SoundCloud a multi-dimensional data model with time series data(=TSDB, 시계열 데이터베이스) identified by metric name and key/value pairs PromQL, a flexible query language to leverage this dimensionality no reliance on distributed storage; single server nodes are autonomous time series collection happe.. 더보기
AEWS 2기 4주차 첫번째 4주차 스터디 공유 시작하겠습니다. Logging EKS Control Plane logging : 로그 이름( /aws/eks//cluster ) - Docs Amazon EKS 컨트롤 플레인 로깅 - Amazon EKS 로그 스트림 데이터가 증가함에 따라 로그 스트림 이름이 교체됩니다. 특정 로그 유형에 대해 여러 로그 스트림이 있는 경우 최신 Last Event Time(마지막 이벤트 시간)으로 로그 스트림 이름을 찾아 docs.aws.amazon.com # 모든 로깅 활성화 aws eks update-cluster-config --region $AWS_DEFAULT_REGION --name $CLUSTER_NAME \ --logging '{"clusterLogging":[{"types":["api.. 더보기
AEWS 2기 3주차 항상 생각하는 거지만, 이 스터디에 참여자분들은 정말 정말 실력이 뛰어난 것 같습니다. 따라가기에 급급한 제가 참 부족해 보입니다. 분발해야겠습니다. 그럼 스터디 3주차 공유 시작하겠습니다. EKS 스토리지에 대해 공부하겠습니다. AWS EBS Controller Volume (ebs-csi-controller) : EBS CSI driver 동작 : 볼륨 생성 및 파드에 볼륨 연결 - 링크 설치 Amazon EBS CSI driver as an Amazon EKS add-on - 링크 Parameters --기본설정-- # default 네임스페이스 적용 kubectl ns default # EFS 확인 : AWS 관리콘솔 EFS 확인해보자 echo $EfsFsId mount -t efs -o tls .. 더보기
AEWS 2기 2주차 첫번째 2주차 스터디 공유 시작하겠습니다. 이번 주제는 Networking 입니다. 먼저 클라우드 포메이션으로 원클릭 배포 후 간단하게 확인해 보겠습니다. 배포확인 # SSH 접속 ssh -i ~/.ssh/kp-gasida.pem ec2-user@$(aws cloudformation describe-stacks --stack-name myeks --query 'Stacks[*].Outputs[0].OutputValue' --output text) # cloud-init 실행 과정 로그 확인 tail -f /var/log/cloud-init-output.log # cloud-init 정상 완료 후 eksctl 실행 과정 로그 확인 tail -f /root/create-eks.log # default 네임스페이스 .. 더보기
AEWS 2기 2주차 두번째 이제 Service & AWS LoadBalancer Controller에 대해 알아보겠습니다. 서비스 종류는 총 4가지 입니다. ClusterIP 타입 NodePort 타입 LoadBalancer 타입 (기본 모드) : NLB 인스턴스 유형 Service (LoadBalancer Controller) : AWS Load Balancer Controller + NLB IP 모드 동작 with AWS VPC CNI NLB 모드 전체 정리 인스턴스 유형 externalTrafficPolicy : ClusterIP ⇒ 2번 분산 및 SNAT으로 Client IP 확인 불가능 ← LoadBalancer 타입 (기본 모드) 동작 externalTrafficPolicy : Local ⇒ 1번 분산 및 ClientI.. 더보기