Kubernetes Annotations
Pod Annotations
Section titled “Pod Annotations”| Annotation | Required | Description |
|---|---|---|
dipolehq.com/agent-inject: "enabled" |
Yes | Triggers Agent Proxy sidecar injection |
dipolehq.com/resource-set-id |
No | Scope to specific Resource Set |
dipolehq.com/client-id |
No | Set Client Workload ID |
dipolehq.com/steering-mode |
No | transparent (default) or explicit |
dipolehq.com/agent-proxy-env-<VAR> |
No | Set env var on proxy container |
Example
Section titled “Example”apiVersion: apps/v1kind: Deploymentmetadata: name: myappspec: template: metadata: annotations: dipolehq.com/agent-inject: "enabled" dipolehq.com/steering-mode: "transparent" spec: containers: - name: myapp image: myapp:latestWhen the pod is created, the Agent Injector webhook automatically adds:
- An init container that sets up iptables rules for traffic interception
- The Agent Proxy sidecar container
- A shared volume for the tenant CA certificate