From f7f86b7b4f3777bb69b7158a4314172ff24f35f9 Mon Sep 17 00:00:00 2001 From: Eden Federman Date: Sun, 27 Sep 2020 10:33:43 +0300 Subject: [PATCH] Disable istio sidecar injection for flame pod --- cli/cmd/kubernetes/job/bpf.go | 3 +++ cli/cmd/kubernetes/job/jvm.go | 3 +++ 2 files changed, 6 insertions(+) diff --git a/cli/cmd/kubernetes/job/bpf.go b/cli/cmd/kubernetes/job/bpf.go index 431a8f5..2ff686e 100644 --- a/cli/cmd/kubernetes/job/bpf.go +++ b/cli/cmd/kubernetes/job/bpf.go @@ -28,6 +28,9 @@ func (b *bpfCreator) create(targetPod *v1.Pod, targetDetails *data.TargetDetails Labels: map[string]string{ "kubectl-flame/id": id, }, + Annotations: map[string]string{ + "sidecar.istio.io/inject": "false", + }, } job := &batchv1.Job{ diff --git a/cli/cmd/kubernetes/job/jvm.go b/cli/cmd/kubernetes/job/jvm.go index 344ed58..75a6baf 100644 --- a/cli/cmd/kubernetes/job/jvm.go +++ b/cli/cmd/kubernetes/job/jvm.go @@ -30,6 +30,9 @@ func (c *jvmCreator) create(targetPod *v1.Pod, targetDetails *data.TargetDetails Labels: map[string]string{ "kubectl-flame/id": id, }, + Annotations: map[string]string{ + "sidecar.istio.io/inject": "false", + }, } job := &batchv1.Job{