Skip to content

Commit

Permalink
Add Kubernetes probes for RabbitMQ
Browse files Browse the repository at this point in the history
  • Loading branch information
dsgnr committed Sep 29, 2021
1 parent 29689b6 commit e038431
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file.

## Unreleased

- Add Kubernetes probes for RabbitMQ
- Rename Redis manifest file and add Kubernetes probes
- Ensure the form captures errors better
- Make the form submit on return key press
Expand Down
22 changes: 22 additions & 0 deletions manifests/templates/rabbitmq/statefulset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,28 @@ spec:
name: discovery
- containerPort: 5672
name: amqp
readinessProbe:
exec:
command:
- /bin/bash
- -ec
- rabbitmq-diagnostics -q check_running && rabbitmq-diagnostics -q check_local_alarms
initialDelaySeconds: 30
timeoutSeconds: 5
periodSeconds: 10
successThreshold: 1
failureThreshold: 3
livenessProbe:
exec:
command:
- /bin/bash
- -ec
- rabbitmq-diagnostics check_running
initialDelaySeconds: 30
timeoutSeconds: 5
periodSeconds: 10
successThreshold: 1
failureThreshold: 3
envFrom:
- configMapRef:
name: {{ .Values.service.rabbitmq.name }}-env
Expand Down

0 comments on commit e038431

Please sign in to comment.