How to correctly do Automatic Proxy Injection? #6349
Answered
by
cpretzer
hongbo-miao
asked this question in
Q&A
-
Hi everyone! I am reading Automatic Proxy Injection section, I thought if I add annotations:
linkerd.io/inject: enabled like apiVersion: apps/v1
kind: Deployment
metadata:
name: api-go-deployment
namespace: hm
spec:
...
template:
metadata:
labels:
component: api-go
annotations:
linkerd.io/inject: enabled After deploying by, for example, Helm by kubectl get deployments --namespace=hm --output=yaml | linkerd inject - | kubectl apply -f - But turns out I am wrong. I am wondering what is the right way for Automatic Proxy Injection? Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
cpretzer
Jun 23, 2021
Replies: 1 comment 5 replies
-
@hongbo-miao that configuration looks correct. As long as your application is deployed with helm after Linkerd is installed, then I'd expect the proxy-injector component to detect the annotation and inject the proxy into the pod. |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
hongbo-miao
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@hongbo-miao that configuration looks correct.
As long as your application is deployed with helm after Linkerd is installed, then I'd expect the proxy-injector component to detect the annotation and inject the proxy into the pod.