monitor
监控系统有 pull 和 push 两种模式:
pull 模式比较适合数据中心的场景
push 模式更适合 iot 的场景
1 | ❯ kubectl apply -f /home/cs/oss/k8s-1.26/helm-charts-main/charts/kube-prometheus-stack/charts/crds/crds/crd-podmonitors.yaml |
no matches for kind “PodMonitor” in version “monitoring.coreos.com/v1”
serviceAnnotations 添加供pull抓取
1 | annotations: |