kube-prometheus 安装

上次我们提到过 Prometheus operator 安装 过时了,所以这次尝试一下新的安装方式

helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update
helm install prometheus-operator --set rbacEnable=true --namespace=monitoring prometheus-community/prometheus-operator

仔细看安装报告最后一条

怎么说呢,你们这是折腾不止啊

https://github.com/prometheus-community/community/issues/28

whatever,我们还是来看一下现在这个版本

还是老办法,先去加一个 nodeport

用户名密码是?

admin
prom-operator

如果需要持久化的话

nameOverride: lizhe
prometheus:
  server:
    persistentVolume:
      enabled: true
  prometheusSpec:
    storageSpec:
      volumeClaimTemplate:
        spec:
          storageClassName: local-path
          accessModes: ["ReadWriteOnce"]
          resources:
            requests:
              storage: 1Gi

helm install prometheus-operator --set rbacEnable=true --namespace=monitoring prometheus-community/prometheus-operator -f myvalues.yaml
kubectl --namespace monitoring port-forward svc/prometheus-operator-grafana 3000:80
Send a Message