From d86d3be1eb2ee7da6b135f5262457c6f70f98264 Mon Sep 17 00:00:00 2001 From: Adam Roberts Date: Wed, 13 Dec 2023 15:16:47 -0500 Subject: [PATCH] feat(agent): update the readiness probes to use localhost (#1530) --- charts/agent/Chart.yaml | 2 +- charts/agent/templates/daemonset.yaml | 1 + charts/agent/templates/deployment.yaml | 1 + charts/agent/tests/readiness_probe_test.yaml | 4 ++++ 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/charts/agent/Chart.yaml b/charts/agent/Chart.yaml index 37e2e1e20..482509259 100644 --- a/charts/agent/Chart.yaml +++ b/charts/agent/Chart.yaml @@ -30,4 +30,4 @@ sources: - https://app.sysdigcloud.com/#/settings/user - https://github.com/draios/sysdig type: application -version: 1.18.1 +version: 1.18.2 diff --git a/charts/agent/templates/daemonset.yaml b/charts/agent/templates/daemonset.yaml index 5025feea7..7e6c3eacf 100644 --- a/charts/agent/templates/daemonset.yaml +++ b/charts/agent/templates/daemonset.yaml @@ -221,6 +221,7 @@ spec: readinessProbe: {{- if eq (include "agent.enableHttpProbes" .) "true" }} httpGet: + host: 127.0.0.1 path: /healthz port: 24483 {{- else }} diff --git a/charts/agent/templates/deployment.yaml b/charts/agent/templates/deployment.yaml index 9f485bf2a..92e1d55df 100644 --- a/charts/agent/templates/deployment.yaml +++ b/charts/agent/templates/deployment.yaml @@ -105,6 +105,7 @@ spec: readinessProbe: {{- if eq (include "agent.enableHttpProbes" .) "true" }} httpGet: + host: 127.0.0.1 path: /healthz port: 24483 {{- else }} diff --git a/charts/agent/tests/readiness_probe_test.yaml b/charts/agent/tests/readiness_probe_test.yaml index a937eb8b3..ae850a0e4 100644 --- a/charts/agent/tests/readiness_probe_test.yaml +++ b/charts/agent/tests/readiness_probe_test.yaml @@ -12,6 +12,7 @@ tests: path: spec.template.spec.containers[0].readinessProbe value: httpGet: + host: 127.0.0.1 path: /healthz port: 24483 initialDelaySeconds: 90 @@ -26,6 +27,7 @@ tests: path: spec.template.spec.containers[0].readinessProbe value: httpGet: + host: 127.0.0.1 path: /healthz port: 24483 initialDelaySeconds: 90 @@ -90,6 +92,7 @@ tests: path: spec.template.spec.containers[0].readinessProbe value: httpGet: + host: 127.0.0.1 path: /healthz port: 24483 initialDelaySeconds: 90 @@ -105,6 +108,7 @@ tests: path: spec.template.spec.containers[0].readinessProbe value: httpGet: + host: 127.0.0.1 path: /healthz port: 24483 initialDelaySeconds: 90