grafana / synthetic-monitoring-agent

Synthetic Monitoring Agent
https://grafana.com/docs/grafana-cloud/how-do-i/synthetic-monitoring/
Apache License 2.0
157 stars 22 forks source link

kubernetes: missing flag for readiness and liveness probes #393

Open vincentbernaud opened 1 year ago

vincentbernaud commented 1 year ago

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.

MaxDiOrio commented 12 months ago

This is STILL an issue after 9 months!

guru1602 commented 9 months ago

Still it's an issue.

danielloader commented 2 months ago

Just ran into this still.