쿠버네티스 17

[EagleEye][서비스구축] K8s에 배포한 사용자 svc의 metrics를 prometheus로 수집하기

https://twofootdog.tistory.com/22 Actuator & Prometheus를 활용한 Spring Boot 애플리케이션 모니터링 이번 글에서는 Actuator와 Prometheus를 활용하여 쿠버네티스 클러스터 내에서 실행 중인 스프링부트 애플리케이션 모니터링을 하는 방법에 대해 알아볼 것이다. Prometheus Server도 쿠버네티스 클러스 twofootdog.tistory.com https://jongmin92.github.io/2019/12/04/Spring/prometheus/ SpringBoot Application의 monitoring 시스템 구축하기 Spring Boot를 사용하고 있는 애플리케이션에서 이전에 살펴본 Micrometer를 이용해서 metric을 생성..

만들기/EagleEye 2022.05.18

[EagleEye][환경세팅] K8s Promehteus metrics 연결 문제 해결 (connection refused, connection reset by peer)

[에러] serviceMonitor/prometheus : Get - dial tcp - connect: connection refused - 몇몇 메트릭을 수집하지 못하는 문제 발생 kube-proxy metricsBindAddress 수정 >> kubectl -n kube-system edit cm kube-proxy - metricsBidnAddress: "" -> metricsBidnAddress: 0.0.0.0:10249 (이것 덕분에 해결되는건지 확실하진 않음) reboot (control plane, worker nodes) >> sudo reboot (reboot을 안해도 기다리면 해결되는 항목도 있는 듯) reboot 후 상태 그 외 kube-system 해결되지 않은 항목 kube-co..

만들기/EagleEye 2022.05.17

[EagleEye][환경세팅] Grafana - Prometheus 연동

https://gruuuuu.github.io/cloud/monitoring-02/ Kubernetes Monitoring - Prometheus 실습 Overview 이번 포스팅에서는 쿠버네티스 클러스터의 메트릭들을 프로메테우스로 수집하고 web UI를 통해 시각화 시키는 작업을 해보겠습니다. 참고 링크 : 쿠버네티스 시작하기(11) - Prometheus & Node-Ex gruuuuu.github.io Grafana에서 Data Source / Prometheus 추가 K8s에서 Prometheus IP 확인 >> kubectl get svc -n prometheus URL 수정 후 save & test 대시보드 template 다운받기 홈페이지 접속 : https://grafana.com/ Gra..

만들기/EagleEye 2022.05.17

[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..

[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

[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

[EagleEye][환경세팅] 쿠버네티스 설치 3 - 워커노드 세팅

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 워커 노드 추가 마스터 노드/워커 노드에 host추가 >> sudo vi /etc/hosts # example..

만들기/EagleEye 2022.05.14