[英]linkerd: auto injection ignored
I've installed linkerd correctly (linkerd check --proxy -n linkerd checkings are all ok).我已经正确安装了链接器(链接器检查 --proxy -n 链接器检查都可以)。
After that, I've annotated my covid
namespace with "auto-injection"
:之后,我用"auto-injection"
注释了我的covid
命名空间:
$ kubectl annotate namespace covid linkerd.io/inject=enabled
After having deployed my deployment:部署我的部署后:
$ linkerd stat deployments -n covid
NAME MESHED SUCCESS RPS LATENCY_P50 LATENCY_P95 LATENCY_P99 TCP_CONN
dev-covid-backend 0/1 - - - - - -
$ linkerd stat pods -n covid
NAME STATUS MESHED SUCCESS RPS LATENCY_P50 LATENCY_P95 LATENCY_P99 TCP_CONN
dev-covid-backend-7ccc987d4-494lv Running 0/1 - - - - - -
As you can see, deployment is not meshed.如您所见,部署不是网格化的。
I've trigerred heartbeat manually.我已经手动触发了心跳。 I'm getting:我越来越:
time="2020-05-05T12:29:39Z" level=info msg="running version stable-2.7.1"
time="2020-05-05T12:29:39Z" level=error msg="Prometheus query failed: unexpected result Prometheus result vector length: 0"
time="2020-05-05T12:29:39Z" level=error msg="Prometheus query failed: unexpected result Prometheus result vector length: 0"
time="2020-05-05T12:29:39Z" level=error msg="Prometheus query failed: unexpected result Prometheus result vector length: 0"
time="2020-05-05T12:29:39Z" level=error msg="Prometheus query failed: unexpected result Prometheus result vector length: 0"
time="2020-05-05T12:29:39Z" level=error msg="Prometheus query failed: unexpected result Prometheus result vector length: 0"
time="2020-05-05T12:29:39Z" level=error msg="Prometheus query failed: unexpected result Prometheus result vector length: 0"
time="2020-05-05T12:29:39Z" level=error msg="Prometheus query failed: unexpected result Prometheus result vector length: 0"
time="2020-05-05T12:29:39Z" level=info msg="Sending heartbeat: https://versioncheck.linkerd.io/version.json?install-time=1588663782&k8s-version=v1.17.3%2Bk3s1&meshed-pods=9&p99-handle-us=50000&source=heartbeat&total-rps=3&uuid=991db911-da8b-45c7-98b5-eb63e6162e8d&version=stable-2.7.1"
time="2020-05-05T12:29:43Z" level=fatal msg="Failed to send heartbeat: Check URL [https://versioncheck.linkerd.io/version.json?install-time=1588663782&k8s-version=v1.17.3%2Bk3s1&meshed-pods=9&p99-handle-us=50000&source=heartbeat&total-rps=3&uuid=991db911-da8b-45c7-98b5-eb63e6162e8d&version=stable-2.7.1] request failed with: Get https://versioncheck.linkerd.io/version.json?install-time=1588663782&k8s-version=v1.17.3%2Bk3s1&meshed-pods=9&p99-handle-us=50000&source=heartbeat&total-rps=3&uuid=991db911-da8b-45c7-98b5-eb63e6162e8d&version=stable-2.7.1: dial tcp: lookup versioncheck.linkerd.io on 10.43.0.10:53: server misbehaving"
Any ideas?有任何想法吗?
Did you restart the dev-covid-backend
deployment after annotating the covid
namespace?注释covid
命名空间后是否重新启动了dev-covid-backend
部署?
kubectl rollout restart deploy/dev-covid-backend -n covid
The heartbeat check is unrelated to the auto injection feature.心跳检查与自动注入功能无关。 You can check the proxy-injector
logs您可以检查proxy-injector
日志
kubectl logs -f deploy/linkerd-proxy-injector -n linkerd
as well as the events:以及事件:
kubectl get events -n covid
If you see errors or messages there, they should help to find a resolution.如果您在那里看到错误或消息,它们应该有助于找到解决方案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.