新集群和 linkerd - 即不启动
Fresh cluster and linkerd - viz doesn't startup
我遇到了一个问题,我正在尝试在我的集群上安装 linkerd,一切顺利
我完全按照这个官方 README
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
但是当我尝试按照 getting-started 页面中的描述安装 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
安装 viz 后,我得到
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
调试
根据你的问题描述:
‼ 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
和:
MacBook-Pro-6% helm list -n default
我遇到了类似的问题,但使用的是 flagger
pod 而不是 grafana
pod(我没有像您那样尝试安装 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
扩展不同的命名空间中。详情可以看我这里写的讨论:
我遇到了一个问题,我正在尝试在我的集群上安装 linkerd,一切顺利
我完全按照这个官方 README
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
但是当我尝试按照 getting-started 页面中的描述安装 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
安装 viz 后,我得到
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
调试
根据你的问题描述:
‼ 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
和:
MacBook-Pro-6% helm list -n default
我遇到了类似的问题,但使用的是 flagger
pod 而不是 grafana
pod(我没有像您那样尝试安装 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
扩展不同的命名空间中。详情可以看我这里写的讨论: