我想在GKE集群上安装helm图表stable/prometheus-operator。我知道防火墙规则需要调整,或者需要通过设置prometheusOperator.admissionWebhooks.enabled=false来禁用钩子(有关详细信息,请参阅图表的自述文件 )。
但是,如果我将图表安装在
- wget -qq https://get.helm.sh/helm-v3.0.0-linux-amd64.tar.gz && tar xf helm-v3.0.0-linux-amd64.tar.gz && mv linux-amd64/helm /usr/local/bin
- helm repo add stable https://kubernetes-charts.storage.googleapis.com/
- helm repo update
- kubectl create ns monitoring
- kubectl apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/master/example/prometheus-operator-crd/alertmanager.crd.yaml
- kubectl apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/master/example/prometheus-operator-crd/prometheus.crd.yaml
- kubectl apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/master/example/prometheus-operator-crd/prometheusrule.crd.yaml
- kubectl apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/master/example/prometheus-operator-crd/servicemonitor.crd.yaml
- kubectl apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/master/example/prometheus-operator-crd/podmonitor.crd.yaml
- helm install monitoring stable/prometheus-operator --namespace=monitoring --wait --timeout 10m --set prometheusOperator.admissionWebhooks.enabled=false在GitLab CI中,pod prometheus-operator有两个容器,它们处于状态“待定”5分钟。我希望这个相当简单的设置可以在一分钟内完成。
您可以在https://gitlab.com/krichter/prometheus-operator-503/-/jobs/358887366上检查集群设置。
在GKE + istio上安装Prometheus中显示的方法不适用,因为我没有安装istio。
发布于 2019-12-02 19:40:41
这是由掌舵图中的一个已知问题引起的。根据https://github.com/helm/charts/issues/19147,可以通过设置prometheusOperator.tlsProxy.enabled=false来避免这个问题。
https://stackoverflow.com/questions/59000093
复制相似问题