0

我有一个问题,我正在尝试在我的集群上安装 linkerd,一切顺利

我完全按照这个官方自述文件

https://linkerd.io/2.11/tasks/install-helm/

通过 helm 安装

MacBook-Pro-6% helm list -n default
NAME        NAMESPACE   REVISION    UPDATED                                 STATUS      CHART           APP VERSION
linkerd2    default     1           2021-12-15 15:47:10.823551 +0100 CET    deployed    linkerd2-2.11.1 stable-2.11.1

linkerd 本身有效,linkerd check命令也有效

MacBook-Pro-6% linkerd version
Client version: stable-2.11.1
Server version: stable-2.11.1

但是当我尝试按照入门viz页面中的说明安装仪表板时,我运行

linkerd viz install | kubectl apply -f -

和一起去的时候

linkerd check
...
Status check results are √

Linkerd extensions checks
=========================
/ Running viz extension check

并且它继续检查即扩展,当我运行时linkerd dashboard(我知道已弃用)显示相同的错误

Waiting for linkerd-viz extension to become available

有人知道我做错了什么吗?被困在这部分 2 小时 &_& 似乎没有人有任何答案

请注意,当我跑步时,linkerd check安装即我得到


linkerd-viz
-----------
√ linkerd-viz Namespace exists
√ linkerd-viz ClusterRoles exist
√ linkerd-viz ClusterRoleBindings exist
√ tap API server has valid cert
√ tap API server cert is valid for at least 60 days
‼ tap API service is running
    FailedDiscoveryCheck: failing or missing response from https://10.190.101.142:8089/apis/tap.linkerd.io/v1alpha1: Get "https://10.190.101.142:8089/apis/tap.linkerd.io/v1alpha1": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
    see https://linkerd.io/2.11/checks/#l5d-tap-api for hints
‼ linkerd-viz pods are injected
    could not find proxy container for grafana-8d54d5f6d-cv7q5 pod
    see https://linkerd.io/2.11/checks/#l5d-viz-pods-injection for hints
√ viz extension pods are running
× viz extension proxies are healthy
    No "linkerd-proxy" containers found in the "linkerd" namespace
    see https://linkerd.io/2.11/checks/#l5d-viz-proxy-healthy for hints

调试

4

1 回答 1

0

根据您的问题描述:

‼ 注入 linkerd-viz pod 找不到 grafana-8d54d5f6d-cv7q5 pod 的代理容器,请参阅https://linkerd.io/2.11/checks/#l5d-viz-pods-injection以获取提示

和:

MacBook-Pro-6% helm list -n 默认

我遇到了类似的问题,但使用的是flaggerpod 而不是grafanapod(我没有像你那样尝试安装grafana组件)。

我的问题的一个副作用是:

$ linkerd viz dashboard
Waiting for linkerd-viz extension to become available
Waiting for linkerd-viz extension to become available
Waiting for linkerd-viz extension to become available
... ## repeating for 5 minutes or so before popping up the dashboard in browser.

我的问题的原因原来是我将viz扩展安装到了linkerd命名空间中。它应该属于linkerd-viz命名空间。

查看您最初的问题描述,似乎您将控制平面安装到default命名空间(与命名空间相反linkerd)。虽然您可以使用任何您想要的命名空间,但控制平面必须位于与viz扩展不同的命名空间中。细节可以在我在这里写的讨论中看到:

于 2022-02-28T19:30:09.563 回答