쿠버네티스 모니터링을 해보자.
1
centos 8
https://helm.sh/docs/intro/install/
wget https://get.helm.sh/helm-v3.14.0-linux-386.tar.gz
chmod 755 helm-v3.14.0-linux-386.tar.gz
tar zxvf helm-v3.14.0-linux-386.tar.gz
mv linux-386/helm /usr/bin/helm
[root@host-10-0-3-182 ~]# helm version
WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /root/.kube/config
WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: /root/.kube/config
version.BuildInfo{Version:"v3.14.0", GitCommit:"3fc9f4b2638e76f26739cd77c7017139be81d0ea", GitTreeState:"clean", GoVersion:"go1.21.5"}
1
2
https://hooks.slack.com/services/T0569T
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update
helm install prometheus prometheus-community/kube-prometheus-stack -f custom-values.yaml -n kube-system
Error: INSTALLATION FAILED: Kubernetes cluster unreachable: Get "https://948206e2-9802-494f-bdb6-3bf523cfc160-public.ke.kr-central-2.kakaocloud.com/version": getting credentials: exec: executable kic-iam-auth failed with exit code 1
[root@host-10-0-3-182 k8se-monitor]#
1
kubectl port-forward svc/prometheus-grafana -n kube-system 30080:80 &
admin
prom-operator
2
Grafana 데이터 소스 생성하기
3
Grafana 대시보드 확인하기
curl -O https://raw.githubusercontent.com/kakaoenterprise/kc-handson-config/k8s-monitor/dashboard.json
https://docs.kakaocloud.com/tutorial/kubernetes/k8se-cluster-monitoring
https://brunch.co.kr/@topasvga/3651
감사합니다.