3

我一直在尝试在启用 Istio (beta) 的 GKE 集群上安装Kiali,我正在按照官方文档使用此链接安装 Kiali,但由于 GCP 已将 Prometheus 的名称从“Prometheus”更改为“promsd” ,因此 Prometheus 以某种方式损坏并且 Kiali 仪表板一直指向http://prometheus.istio-system.com:9090而不是http://promsd.istio-system.com:9090. 我应该如何在默认的 ISTIO ENABLED GKE 集群中解决这个问题?

4

3 回答 3

2

您可以检查命名空间 istio-system 中的 kiali configmap(假设您使用默认命名空间进行 istio 安装)。外部服务下面应该有一个 prometheus 标签。更改它并重新启动 kiali pod。

更新 20200821:我们的配置图(通过 istioctl 安装的 Istio (v1.5.6))

kind: ConfigMap
apiVersion: v1
metadata:
  name: kiali
  namespace: istio-system
  selfLink: /api/v1/namespaces/istio-system/configmaps/kiali
  uid: 660a2bfe-c71b-45ab-a438-ed61532dd8e3
  resourceVersion: '31024421'
  creationTimestamp: '2020-07-24T10:18:24Z'
  labels:
    app: kiali
    operator.istio.io/component: AddonComponents
    operator.istio.io/managed: Reconcile
    operator.istio.io/version: 1.5.6
    release: istio
  annotations:

data:
  config.yaml: |
    istio_component_namespaces:
      grafana: istio-system
      tracing: istio-system
      pilot: istio-system
      prometheus: istio-system
    istio_namespace: istio-system
    auth:
      strategy: login
    deployment:
      accessible_namespaces: ['**']
    login_token:
      signing_key: "xxxxxxxxxxxxxxxxxx"
    server:
      port: 20001
      web_root: /kiali
    external_services:
      istio:
        url_service_version: http://istio-pilot.istio-system:8080/version
      tracing:
        url: 
        in_cluster_url: http://tracing/jaeger
      grafana:
        url: 
        in_cluster_url: http://grafana:3000
      prometheus:
        url: http://prometheus.istio-system:9090
于 2020-08-12T19:10:22.660 回答
0

我有一个类似的错误消息(不在 GCP 中),并通过安装 Prometheus 解决了它:

$ kubectl apply -f https://raw.githubusercontent.com/istio/istio/release-1.13/samples/addons/prometheus.yaml

release-1.13用你的istio版本替换

https://istio.io/latest/docs/ops/integrations/prometheus/

于 2022-02-22T05:30:56.727 回答
0

为了使它工作,我必须在命名空间内编辑ConfigMap名为kialiistio-system。我在该部分下添加了这一行external_services

prometheus:
  url: http://my-prometheus-kube-prometh-prometheus.default.svc.cluster.local:9090/

在此处输入图像描述

于 2021-06-07T19:22:57.683 回答