From 70cae9d72d09ef03392e82bb1ee50a81e184f9e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferenc=20G=C3=A9czi?= Date: Tue, 29 Oct 2024 12:00:00 +0000 Subject: [PATCH 1/2] feat: Increase default k8sensor pollrate to 5s MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ferenc Géczi --- pkg/k8s/object/builders/k8s-sensor/deployment/deployment.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/k8s/object/builders/k8s-sensor/deployment/deployment.go b/pkg/k8s/object/builders/k8s-sensor/deployment/deployment.go index 55604482..c07090b6 100644 --- a/pkg/k8s/object/builders/k8s-sensor/deployment/deployment.go +++ b/pkg/k8s/object/builders/k8s-sensor/deployment/deployment.go @@ -139,6 +139,8 @@ func (d *deploymentBuilder) build() *appsv1.Deployment { Name: "instana-agent", Image: d.Spec.K8sSensor.ImageSpec.Image(), ImagePullPolicy: d.Spec.K8sSensor.ImageSpec.PullPolicy, + Command: []string{"/ko-app/k8sensor"}, + Args: []string{"5s"}, Env: d.getEnvVars(), VolumeMounts: mounts, Resources: d.Spec.K8sSensor.DeploymentSpec.Pod.ResourceRequirements.GetOrDefault(), From 8399176586c35ea77f1b45c54a67c72b5f45f17b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferenc=20G=C3=A9czi?= Date: Fri, 6 Dec 2024 12:00:00 +0000 Subject: [PATCH 2/2] Insert -pollrate switch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ferenc Géczi --- pkg/k8s/object/builders/k8s-sensor/deployment/deployment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/k8s/object/builders/k8s-sensor/deployment/deployment.go b/pkg/k8s/object/builders/k8s-sensor/deployment/deployment.go index c07090b6..af9cfe6d 100644 --- a/pkg/k8s/object/builders/k8s-sensor/deployment/deployment.go +++ b/pkg/k8s/object/builders/k8s-sensor/deployment/deployment.go @@ -140,7 +140,7 @@ func (d *deploymentBuilder) build() *appsv1.Deployment { Image: d.Spec.K8sSensor.ImageSpec.Image(), ImagePullPolicy: d.Spec.K8sSensor.ImageSpec.PullPolicy, Command: []string{"/ko-app/k8sensor"}, - Args: []string{"5s"}, + Args: []string{"-pollrate", "5s"}, Env: d.getEnvVars(), VolumeMounts: mounts, Resources: d.Spec.K8sSensor.DeploymentSpec.Pod.ResourceRequirements.GetOrDefault(),