Skip to content

Linkerd 19.2.5 not auto-injecting into all containers #2418

@christianhuening

Description

@christianhuening

Bug Report

What is the issue?

When using Linkerd 19.2.5 with mTLS and auto-inject it does work for some Deployments in an annotated namespace and for some not.

The deployments are almost the same except for some command args of the starting container. Also both do not contain disabled annotations. Here are some specs:

Working:

apiVersion: v1
kind: Pod
metadata:
  annotations:
    checksum/config: 9588b3336733648253c899ec818098b639b2cb7d0fdb9ebad66be1b0aa072b7d
    kubernetes.io/psp: restricted
    linkerd.io/created-by: linkerd/proxy-injector edge-19.2.5
    linkerd.io/identity-mode: optional
    linkerd.io/proxy-version: edge-19.2.5
  creationTimestamp: "2019-02-28T13:32:02Z"
(...)

vs. not working

apiVersion: v1
kind: Pod
metadata:
  annotations:
    checksum/config: 9588b3336733648253c899ec818098b639b2cb7d0fdb9ebad66be1b0aa072b7d
    kubernetes.io/psp: restricted
  creationTimestamp: "2019-02-28T13:32:00Z"
(...)

And here are excerpts from the proxy-injector pod:
working:

time="2019-02-28T13:32:00Z" level=info msg="working on v1/deployment fu-figo-api-task-sync-payment-parameter.."
time="2019-02-28T13:32:00Z" level=info msg="patch generated:

vs not working:

time="2019-02-28T13:31:59Z" level=info msg="working on v1/deployment fu-figo-api-task-register.."
time="2019-02-28T13:31:59Z" level=info msg="skipping deployment fu-figo-api-task-register"

so it seems the injector simply skips this deployment for some reason.

How can it be reproduced?

Logs, error output, etc

(If the output is long, please create a gist and
paste the link here.)

linkerd check output

your output here ...

Environment

  • Kubernetes Version: 1.13.3
  • Cluster Environment: (GKE, AKS, kops, ...): bare-metal
  • Host OS: ContainerLinux 1967.6.0
  • Linkerd version: edge-19.2.5

Possible solution

Additional context

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions