Skip to content

Commit

Permalink
tasks: Delay webhook startup
Browse files Browse the repository at this point in the history
Starting the AMQP and webhook container in parallel very often runs into
webhook not yet being able to connect to the AMPQ server, and thus
getting trapped in a crash loop until it wins the race.

Delay the webhook startup by 10 seconds. This isn't scientific, but good
enough for the two times a year that we restart this pod.
  • Loading branch information
martinpitt committed Dec 16, 2024
1 parent d038033 commit 169b53b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/cockpit-tasks-webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ spec:
ports:
- containerPort: 8080
protocol: TCP
command: [ "webhook" ]
command: [ "sh", "-ec", "sleep 10; exec webhook" ]
volumeMounts:
- name: webhook-secrets
mountPath: /run/secrets/webhook
Expand Down

0 comments on commit 169b53b

Please sign in to comment.