전체 446

[EagleEye][환경세팅] Kubernetes Prometheus-stack 설치

https://ekwkqk12.tistory.com/48 [Monitoring] Prometheus-Stack Helm helm repo add prometheus-community https://prometheus-community.github.io/helm-charts helm repo update helm pull prometheus-community/kube-prometheus-stack --untar ktl create ns proemtheus-stac.. ekwkqk12.tistory.com https://jerryljh.tistory.com/9 15. Kube 교육 - Prometheus Stack 설치 실습 prometheus-stack 설치 grafana 기본 모니터링 페이지 확인 Why..

만들기/EagleEye 2022.05.17

[K8s] 쿠버네티스 명령어 모음

K8s 설명 명령 옵션 클러스터 시작 kubeadm init 클러스터 정보 kubectl cluster-info 실행중인 pod 확인 watch kubectl get pods --all-namespaces 이벤트 확인 kubectl get events --namespace={네임스페이스} pod 정보 확인 kubectl describe pods {POD 이름} --namespace={네임스페이스} 클러스터 노드 확인 kubectl get no token 확인 kubeadm token list discovery-token-ca-cert-hash openssl x509 -pubkey -in /etc/kubernetes/pki/ca.crt | openssl rsa -pubin -outform der 2>/de..

[K8s] Helm

정의 The package manager for Kubernetes - k8s 패키지 관리자 Node.js의 npm / python의 pip 주요 개념 Chart Repository Release Chart 헬름 패키지 k8s cluster에서 애플리케이션이 가동되기 위한 모든 리소스 포함 - ex) mariadb 가동을 위한 리소스 : Deployemnt, Secret, Service Repository 차트 저장소 Release k8s cluster에서 구동되는 chart의 인스턴스 동일한 chart를 여러 번 설치하면 새로운 release로 관리 Repository에서 원하는 Helm Chart를 검색/설치 후 Release 생성 Helm v3 helm v2 -> v3에서 변화가 큰 듯 - Helm..

[클라우드] 배포 전략 (인플레이스, 롤링, 블루/그린, 카나리)

https://dev.classmethod.jp/articles/ci-cd-deployment-strategies-kr/ 매번 헷갈리는 CI/CD 배포 전략 정리해버리기 | DevelopersIO AWS 자격증을 공부하다가 매번 헷갈리는 배포 전략에 대해서 정리해보았습니다. dev.classmethod.jp 인플레이스 [정의] 새로운 버전의 어플리케이션만 반영하는 방법 [절차] 어플리케이션 일시 정지 -> 최신 버전으로 설치 -> 앱 실행 [사용] EC2, 온프레미스 환경에서만 사용 가능 롤링 배포 [정의] 한 번에 정해진 수 만큼씩 새로운 버전을 배포 [방식] 구버전에서 새버전으로 트래픽을 점진적으로 전환하여, 구버전이 점차 삭제 [장점] 서버 수의 제약이 있을 경우 유용한 방법 - [단점] 배포 중 ..

[EagleEye][환경세팅] 쿠버네티스 설치 4 - 애드온 설치 (Dashboard, Metric Server, Prometheus and Grafana 설명)

https://computingforgeeks.com/deploy-kubernetes-cluster-on-ubuntu-with-kubeadm/ Install Kubernetes Cluster on Ubuntu 20.04 with kubeadm | ComputingForGeeks Kubernetes is a tool for orchestrating and managing containerized applications at scale on on-premise server or across hybrid cloud environments. Kubeadm is a computingforgeeks.com Kubernetes Dashboard https://computingforgeeks.com/how-to-ins..

만들기/EagleEye 2022.05.16

[Linux] git token

please use a personal access token instead Personal access token 생성 - github.com > Settings > Developer settings > Personal access tokens 생성된 key를 password 대신 사용 https://velog.io/@shin6949/Github-Token-%EB%B0%A9%EC%8B%9D%EC%9C%BC%EB%A1%9C-%EB%A1%9C%EA%B7%B8%EC%9D%B8%ED%95%98%EA%B8%B0-ch3ra7vc Github Token 방식으로 로그인하기 Github가 8/13부로 Git CLI 환경에서 계정 비밀번호로 로그인하는 것을 차단했습니다. 이에 바뀐 Personal Access Toke..

CS/리눅스 2022.05.15

[EagleEye][서비스구현] K8s 클러스터 애플리케이션에 접속하기

1. 서비스를 생성해서 연결하는 방법 https://velog.io/@dojun527/Pod-%EC%99%B8%EB%B6%80%EC%97%90%EC%84%9C-%EC%A0%91%EC%86%8D%ED%95%98%EA%B2%8C-%EC%84%A4%EC%A0%95%ED%95%98%EA%B8%B0 Pod 외부에서 접속하게 설정하기 생성한 Pod를 외부에 노출시켜본다.앞서 배포한 Pod의 ip 주소로 외부에서 접속하려하면 접속할 수 없다는 창이 뜬다. 이는 쿠버네티스 내부에서 사용하는 네트워크가 외부와 격리되었기 때문이 velog.io https://pythaac.tistory.com/448 [EagleEye][서비스구현] Spring boot with K8s https://pythaac.tistory.com/4..

만들기/EagleEye 2022.05.15

[EagleEye][서비스구현] Spring boot with K8s

https://pythaac.tistory.com/437 [EagleEye][서비스구현] Spring boot with Docker https://spring.io/guides/gs/spring-boot-docker/ Spring Boot with Docker this guide is designed to get you productive as quickly as possible and using the latest Spring project releases and technique.. pythaac.tistory.com 목표 변경 위 글에서 간단한 서비스를 구현하고 테스트하기로 했었지만, 그보다 더욱더 간단하게 만들어 테스트하기로 함 1차 목표 : Hello world처럼 간단한 서버를 쿠버네티스에 배..

만들기/EagleEye 2022.05.15