【问题标题】:"Kiali secret is missing" but it's definitely there“Kiali 的秘密不见了”,但它肯定存在
【发布时间】:2020-03-01 14:40:47
【问题描述】:

我的 Kiali 安装在登录时返回 520。

在我的控制台中正在打印:

W1105 08:23:28.238619       1 kiali.go:145] Kiali is missing a secret that contains both 'username' and 'passphrase'
E1105 08:23:34.142346       1 authentication.go:108] Credentials are missing. Create a secret. Please refer to the documentation for more details.

这很奇怪,因为正在运行

kubectl describe secret kiali -n istio-system

为我提供以下输出:

Name:         kiali
Namespace:    istio-system
Labels:       app=kiali
              flux.weave.works/sync-gc-mark=sha256.ZNNGIdiNNcRZl-YCuc551EB3Edthk6kuz-PlDVn6U9k
Annotations:  flux.weave.works/sync-checksum: ae50afa268598e23696d4e980b1686829b3589e4

Type:  Opaque

Data
====
passphrase:  5 bytes
username:    6 bytes

重启 pod 并不能解决问题。

使用的版本 Kiali:版本:v0.18.1,提交:ef27faa

Istio:1.1.2

Kubernetes 风格和版本:Azure AKS

复制 使用以下资源将 Istio 部署到 AKS 集群: https://github.com/timfpark/fabrikate-cloud-native

编辑:

事实证明,更新到 1.1.5 就足够了。 我使用的 repo 也不是官方版本。可以在这里找到: https://github.com/microsoft/fabrikate-definitions/tree/master/definitions/fabrikate-cloud-native

【问题讨论】:

    标签: kubernetes kubernetes-helm istio azure-aks kiali


    【解决方案1】:

    我遇到了这个问题,升级到 istio 1.1.5 或更高版本。您可以将我的 example repo 与 istio 1.2.0 一起使用。这样也能解决问题。

    https://github.com/rootsongjc/cloud-native-sandbox/issues/2

    【讨论】:

    • 谢谢!我实际上是在搜索时找到了这个 repo。我去看看!
    【解决方案2】:

    当您确保秘密包含数据时,云的一个可能原因是该秘密未正确安装。

    检查你是否挂载了secret:

    $ kubectl describe deploy/<deployment-name> -n <namespace>
    ... ... ...
            volumeMounts:
            - name: kiali-secret
              mountPath: "/kiali-secret"
          volumes:
          - name: kiali-secret
            secret:
              secretName: kiali
              optional: true
    ... ... ...
    

    【讨论】:

      猜你喜欢
      • 2020-07-21
      • 2015-12-19
      • 1970-01-01
      • 2016-08-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-09-23
      相关资源
      最近更新 更多