Skip to content

autoinject: Inject Pods rather than Deployments #2342

@olix0r

Description

@olix0r

Currently, the autoinjector service watches deployments and adds proxies to deployments. However, deployments are only created/updated when a user invokes kubectl apply... As we introduce injector config that might be dynamic (i.e. a user may change it at runtime), this means that existing deployments would have no way of using this configuration as the deployments pods are (re-)created.

What if, instead of getting notifications about deployment updates, we watch for Pod creation? I think this will enable the injector to apply configuration on pod creation (i.e. if i delete a pod of an existing deployment, a new pod will be created and get injected anew with config).

cc @grampelberg @ihcsim

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions