Welcome to the Linux Foundation Forum!

LFS258 Lab 11.1 - Linkerd InitContainers wont work

(Possibly related to: https://forum.linuxfoundation.org/discussion/871946/lfs258-lab-10-3-ubuntu-pod-no-connectivity)

Lab 11.1:

student@cp:(⎈|default):~$ kubectl -n linkerd get pods
NAME                                      READY   STATUS     RESTARTS      AGE
linkerd-destination-7cf8694d-cbknl        4/4     Running    0             10m
linkerd-heartbeat-29918055-wbtnq          1/1     Running    0             95s
linkerd-identity-77cd9c9867-dfkt6         2/2     Running    0             10m
linkerd-proxy-injector-76685b79f7-rwxlq   0/2     Init:1/2   4 (34s ago)   10m

It seems the InitContainers won't work properly thus the main service refuses to start

student@cp:(⎈|default):~$ kubectl -n linkerd logs pods/linkerd-proxy-injector-76685b79f7-rwxlq linkerd-proxy
[..]
[    81.244542s]  WARN ThreadId(01) watch{port=8443}: linkerd_app_inbound::policy::api: Unexpected policy controller response; retrying with a backoff grpc.status=Deadline expired before operation could complete grpc.message="initial item not received within timeout"
[    81.337762s]  WARN ThreadId(01) watch{port=9995}: linkerd_app_inbound::policy::api: Unexpected policy controller response; retrying with a backoff grpc.status=Deadline expired before operation could complete grpc.message="initial item not received within timeout"
[    83.350080s]  WARN ThreadId(01) watch{port=4191}: linkerd_app_inbound::policy::api: Unexpected policy controller response; retrying with a backoff grpc.status=Deadline expired before operation could complete grpc.message="initial item not received within timeout"
[    90.008169s]  WARN ThreadId(01) linkerd_app: Waiting for identity to be initialized...
[    90.336129s]  WARN ThreadId(01) dst:controller{addr=linkerd-dst-headless.linkerd.svc.cluster.local:8086}: linkerd_app_core::control::balance: Failed to resolve control-plane component error=failed SRV and A record lookups: failed to resolve SRV record: request timed out; failed to resolve A record: request timed out error.sources=[failed to resolve A record: request timed out, request timed out]
[    90.343293s]  WARN ThreadId(01) policy:controller{addr=linkerd-policy.linkerd.svc.cluster.local:8090}: linkerd_app_core::control::balance: Failed to resolve control-plane component error=failed SRV and A record lookups: failed to resolve SRV record: request timed out; failed to resolve A record: request timed out error.sources=[failed to resolve A record: request timed out, request timed out]
[   105.009068s]  WARN ThreadId(01) linkerd_app: Waiting for identity to be initialized...
[   110.008907s]  INFO ThreadId(02) identity:identity{server.addr=linkerd-identity-headless.linkerd.svc.cluster.local:8080}:controller{addr=linkerd-identity-headless.linkerd.svc.cluster.local:8080}: linkerd_proxy_balance_queue::worker: Unavailable; entering failfast timeout=30.0
[   110.009016s] ERROR ThreadId(02) identity:identity{server.addr=linkerd-identity-headless.linkerd.svc.cluster.local:8080}: linkerd_proxy_identity_client::certify: Failed to obtain identity error=code: 'Unknown error', message: "controller linkerd-identity-headless.linkerd.svc.cluster.local:8080: service in fail-fast", source: ControlError { addr: Name(NameAddr { name: Name("linkerd-identity-headless.linkerd.svc.cluster.local."), port: 8080 }), source: FailFastError(()) } error.sources=[controller linkerd-identity-headless.linkerd.svc.cluster.local:8080: service in fail-fast, service in fail-fast]
[   119.846457s]  INFO ThreadId(01) linkerd_proxy::signal: received SIGTERM, starting shutdown
[   119.846479s]  INFO ThreadId(01) linkerd2_proxy: Received shutdown signal
[   120.010010s]  WARN ThreadId(01) linkerd_app: Waiting for identity to be initialized...
[   120.759073s]  WARN ThreadId(01) policy:controller{addr=linkerd-policy.linkerd.svc.cluster.local:8090}: linkerd_app_core::control::balance: Failed to resolve control-plane component error=failed SRV and A record lookups: failed to resolve SRV record: request timed out; failed to resolve A record: request timed out error.sources=[failed to resolve A record: request timed out, request timed out]
[   120.759135s]  WARN ThreadId(01) dst:controller{addr=linkerd-dst-headless.linkerd.svc.cluster.local:8086}: linkerd_app_core::control::balance: Failed to resolve control-plane component error=failed SRV and A record lookups: failed to resolve SRV record: request timed out; failed to resolve A record: request timed out error.sources=[failed to resolve A record: request timed out, request timed out]

Starting a new lab fixed the issue for me.

Categories

Upcoming Training