linkerd2: Can't run `linkerd top` in Windows Subsystem for Linux shell
Bug Report
What is the issue?
Not able to run linkerd top
as described in the getting-started guide.
How can it be reproduced?
Follow the getting-started guide to deploy linkerd stable-2.1.0 on Kubernetes.
the command linkerd -n linkerd top deploy/linkerd-web
from step 4 will fail.
Logs, error output, etc
[☸ kubernetes-admin@cluster.local:linkerd] ~|⇒ linkerd -n linkerd --verbose top deploy/linkerd-web
[https://xx.xx.xx.xx:6443/api/v1/namespaces/linkerd/services/linkerd-controller-api:http/proxy/api/v1/]
DEBU[0000] Making gRPC-over-HTTP call to [https://xx.xx.xx.xx:6443/api/v1/namespaces/linkerd/services/linkerd-controller-api:http/proxy/api/v1/SelfCheck] []
DEBU[0000] Response from [https://xx.xx.xx.xx:6443/api/v1/namespaces/linkerd/services/linkerd-controller-api:http/proxy/api/v1/SelfCheck] had headers: map[Content-Type:[application/octet-stream] Date:[Wed, 12 Dec 2018 05:54:06 GMT] Content-Length:[108]]
DEBU[0000] gRPC-over-HTTP call returned status [200 OK] and content length [108]
DEBU[0003] Response from [https://xx.xx.xx.xx:6443/api/v1/namespaces/linkerd/services/linkerd-controller-api:http/proxy/api/v1/TapByResource] had headers: map[Content-Type:[application/octet-stream] Date:[Wed, 12 Dec 2018 05:54:09 GMT]]
Error: invalid argument
linkerd check
output
kubernetes-api: can initialize the client..................................[ok]
kubernetes-api: can query the Kubernetes API...............................[ok]
kubernetes-api: is running the minimum Kubernetes API version..............[ok]
linkerd-api: control plane namespace exists................................[ok]
linkerd-api: control plane pods are ready..................................[ok]
linkerd-api: can initialize the client.....................................[ok]
linkerd-api: can query the control plane API...............................[ok]
linkerd-api[kubernetes]: control plane can talk to Kubernetes..............[ok]
linkerd-api[prometheus]: control plane can talk to Prometheus..............[ok]
linkerd-api: no invalid service profiles...................................[ok]
linkerd-version: can determine the latest version..........................[FAIL] -- Get https://versioncheck.linkerd.io/version.json?version=stable-2.1.0&uuid=unknown&source=cli: context deadline exceeded
Status check results are [FAIL]
Environment
- Kubernetes Version: 1.12.3 and 1.9.6
- Cluster Environment: Installed on VMs using Kubespray
- Host OS: CentOS 7
- Linkerd version: stable-2.1.0
Possible solution
Additional context
I’m getting the same result on Kube 1.9.6 and 1.12.3
There’s an issue with the external network for these cluster that’s causing the linkerd-version check to fail, but I don’t think that’s the root cause here.
I’ve validated that the install is working otherwise by accessing the UI and running other linkerd
commands.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (10 by maintainers)
I was able to install Windows 10 1709 and can confirm it doesn’t work in WSL with this version of windows.
@switchboardOp Glad we were able to get to the bottom of this! We can leave this issue open to track handling WSL better. At a minimum, if we can’t draw the top table, we should display a more intelligible error message. Thanks for your help tracking this down.