主机说明 主机名 硬件 操作及内核 IP rancher CPU 4 Memory 4G Disk 100G Ubuntu 22.04 192.168.77.120 rke-con…
EFK介绍 EFK为elasticsearch、fluentd、kibana的简称,本案例主要对kubernetes集群日志收集。 fluentd是一款开源的日志收集工具。优势: …
为什么收集日志 收集日志可以用于: 分析用户行为 监控服务器状态 增强系统或应用安全性等。 收集哪些日志 kubernetes集群节点系统日志 kubernetes集群节点应用程序…
添加仓库 [root@harbor monitoring]# helm repo add bitnami https://charts.bitnami.com/bitnami [r…
环境准备 软件版本 系统:Ubuntu 22.04.3 TLS 内核:5.15.0-88-generic kubernetes:1.27.8 etcd:etcd v3.5.9 co…
helm包 [root@harbor ~]# helm repo add bitnami https://charts.bitnami.com/bitnami [root@harb…
部署MySQL5.7 [root@harbor monitoring]# cat mysql.yaml apiVersion: v1 kind: Namespace metadat…
监控方案一: 部署redis-exporter及serviceMonitor [root@harbor ~]# helm repo add bitnami https://char…
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts [roo…
[root@harbor yaml]# kubectl apply -f 05_mysql.yaml service/mysql created statefulset.apps/…