synthetic-monitoring-agent icon indicating copy to clipboard operation
synthetic-monitoring-agent copied to clipboard

kubernetes: missing flag for readiness and liveness probes

Open vincentbernaud opened this issue 2 years ago • 3 comments

Hi,

When trying to deploy probes in our kubernetes clusters, we used your kubernetes example to create an helm chart and noticed that it is not working as expected.

The default binding address of the agent is localhost:4050, causing the readiness and liveness requests (sent by kubelet) to fail and creates a CrashLoopBackoff error.

It can be fixed by adding the --listen-address="0.0.0.0:4050" flag to the container args.

containers:
  - name: {{ .Chart.Name }}
    args:
      - /usr/local/bin/synthetic-monitoring-agent --api-server-address=${API_SERVER} --api-token=${API_TOKEN} --verbose=true --listen-address="0.0.0.0:4050"
    command:
      - sh
      - -c
...

I'll be happy to share the full helm chart if you're interested.

vincentbernaud avatar Jan 19 '23 20:01 vincentbernaud

This is STILL an issue after 9 months!

MaxDiOrio avatar Sep 11 '23 16:09 MaxDiOrio

Still it's an issue.

guru1602 avatar Nov 24 '23 09:11 guru1602

Just ran into this still.

danielloader avatar Jul 07 '24 20:07 danielloader