IT 일기
-
K8S Controller (ReplicaSet, Deployment)
K8S Controller (ReplicaSet, Deployment)
2024.12.11개요쿠버네티스의 기본 단위는 Pod 이다. 그리고 이러한 Pod 를 이용하여 rs, deploy, job .. 등등 많은 형태가 정의 된다.쿠버네티스는 어떻게 리소스를 관리하고, 운영되는지 쿠버네티스의 핵심, 컨트롤러에 대해 정리하려 한다.내용은 쿠버네티스 공식 docs 를 참고한다.Kubernetes Documentation | Kubernetes Kubernetes DocumentationKubernetes is an open source container orchestration engine for automating deployment, scaling, and management of containerized applications. The open source project is hosted b.. -
grafana 에 prometheus 연결하기
grafana 에 prometheus 연결하기
2024.12.08k3s 에 grafana 와 prometheus 가 설치되어 있어야 함.prometheus 확인kubectl get svc -n mon | grep prometheus-serverprometheus-server ClusterIP 10.43.198.90 80/TCP 32m 연결Grafana 에서 Add new connection => prometheus 클릭Add new data source 클릭Connection 항목에 prometheus 정보 입력 서비스 이름을 입력해도 되고 서비스 IP 를 입력해도 됨, 맨 위에서 서비스를 조회했던 IP 를 사용한다.http://prometheus-server.mon.svc.cluster.lo.. -
k3s 에 grafana, prometheus 설치하기
k3s 에 grafana, prometheus 설치하기
2024.12.08multipass 로 설치한 k3s 에 grafana 와 prometheus 를 설치한다. 이를 위해 k3s 가 설치되어 있어야 한다.https://jjoyling.tistory.com/197 Ubuntu 20.04 가상머신 생성multipass launch --name k3s --memory 2048M --disk 10G focal#multipass list -> 가상머신 설" data-og-host="jjoyling.tistory.com" data-og-source-url="https://jjoyling.tistory.com/197" data-og-url="https://jjoyling.tistory.com/197" data-og-image="https://scrap.kakaocdn.net/dn/bx.. -
K3S 설치 - mac (multipass)
K3S 설치 - mac (multipass)
2024.12.08mutlpass 설치brew install --cask multipassmultipass 설치 확인k3s 설치를 위한 가상머신 생성#multiupass launch -> Ubuntu 20.04 가상머신 생성multipass launch --name k3s --memory 2048M --disk 10G focal#multipass list -> 가상머신 설치 확인multipass listName State IPv4 Imagek3s Running 192.168.64.2 Ubuntu 20.04 LTS가상머신 접속 & 패키지 업데이트# 가상머신 접속multipass shell..