Skip to content

Commit d86d3be

Browse files
authored
feat(agent): update the readiness probes to use localhost (#1530)
1 parent 7c822b1 commit d86d3be

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

charts/agent/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ sources:
3030
- https://app.sysdigcloud.com/#/settings/user
3131
- https://github.com/draios/sysdig
3232
type: application
33-
version: 1.18.1
33+
version: 1.18.2

charts/agent/templates/daemonset.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ spec:
221221
readinessProbe:
222222
{{- if eq (include "agent.enableHttpProbes" .) "true" }}
223223
httpGet:
224+
host: 127.0.0.1
224225
path: /healthz
225226
port: 24483
226227
{{- else }}

charts/agent/templates/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ spec:
105105
readinessProbe:
106106
{{- if eq (include "agent.enableHttpProbes" .) "true" }}
107107
httpGet:
108+
host: 127.0.0.1
108109
path: /healthz
109110
port: 24483
110111
{{- else }}

charts/agent/tests/readiness_probe_test.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ tests:
1212
path: spec.template.spec.containers[0].readinessProbe
1313
value:
1414
httpGet:
15+
host: 127.0.0.1
1516
path: /healthz
1617
port: 24483
1718
initialDelaySeconds: 90
@@ -26,6 +27,7 @@ tests:
2627
path: spec.template.spec.containers[0].readinessProbe
2728
value:
2829
httpGet:
30+
host: 127.0.0.1
2931
path: /healthz
3032
port: 24483
3133
initialDelaySeconds: 90
@@ -90,6 +92,7 @@ tests:
9092
path: spec.template.spec.containers[0].readinessProbe
9193
value:
9294
httpGet:
95+
host: 127.0.0.1
9396
path: /healthz
9497
port: 24483
9598
initialDelaySeconds: 90
@@ -105,6 +108,7 @@ tests:
105108
path: spec.template.spec.containers[0].readinessProbe
106109
value:
107110
httpGet:
111+
host: 127.0.0.1
108112
path: /healthz
109113
port: 24483
110114
initialDelaySeconds: 90

0 commit comments

Comments
 (0)