Skip to content

Commit

Permalink
Add daq-activemq service
Browse files Browse the repository at this point in the history
To be used as a message bus for DAQ services.
  • Loading branch information
joeshannon committed Mar 27, 2024
1 parent bfbee63 commit 6ea98a7
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 0 deletions.
16 changes: 16 additions & 0 deletions services/daq-rabbitmq/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: v2
name: daq-rabbitmq
description: RabbitMQ instance for DAQ services

version: 11.16.2

# When we deploy with the edge-containers-cli we override this on the command line.
# Direct deployment with Helm will use the default beta value.
appVersion: 0.0.1b1

type: application

dependencies:
- name: rabbitmq
version: 11.16.2
repository: oci://registry-1.docker.io/bitnamicharts
16 changes: 16 additions & 0 deletions services/daq-rabbitmq/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
daq-rabbitmq Helm Chart
=====================

Installs a RabbitMQ instance for use a message bus.

Deploy this chart to the cluster by setting up your cluster namespace connection
using environment.sh and then executing the following commands:

```bash
# lists the latest versions of all services
ec list
# deploy the latest version of the epics-pvcs which includes an opis volume
ec deploy daq-rabbitmq VERSION
# deploy the latest version of the epics-opis service
ec deploy daq-rabbitmq VERSION
```
16 changes: 16 additions & 0 deletions services/daq-rabbitmq/templates/rabbitmq.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
creationTimestamp: null
name: rabbitmq-password
namespace: bl45p
spec:
encryptedData:
rabbitmq-password: AgDPDY4OTExVgPb2pDdO4YEZPTR+BN4IMvSDET1QFqRkfJ7r8OW9GdfSOJrmJ5/MOGL5u4kNIeVrhvzXJAvk8osWNXpvbA1B32psXRE/Fdlt5C95k8A1TBgGikh85o4BDv08rOGKIg3/LyYwWx9oGNDSsa0qEp4dato95UhS+JIhiKcvvHDf5CxRN3mUrzggALEM8x0b3qmkDbeSp15k2l0bn/BNBcjRe1aZhEBxd3mEmaKkX+y2T+BKiYCQ/k+IplZ+HLbJZlwtxqVZS85IfGeHsWAgMztmMbWMBH4vd/8qwaz1f79MWQ+W9p1ENy0er7XmFj2NRSa40BTAO8lpx3KAYR0Wr/TcEFhpcyTVSHPVvWSC83eyFOuoFaT6twil1OMMTpfpjK9zrsx3KytNaOkzgsLhmChefYpmRPNZL0b0jrHCIu+OaLpYdsULRYYWbZVEodSoj2IDrZ78U1h35nZYzDM6vf5J6953ZHC6NDkCCzZ+TaR+yZ0FgA5V+HBxFaBWBWFdZwYa0PysWpu5Kajn6LIInII4SAbGMGQ69nWpfH46qbShCgTzGn4xdrlUYYJ4Z8QnknEW4q/LWDgaDEwng1blyZZqp1npK/wycmDzyRWE26S5VHJDiCX+rM5y9J4JfJvCi0K93SUMD3hM50fOpXgRjo7D4RrK8kbnYWTcB1tAfPcE4K1APfguLoB/J80PHe0=
template:
data: null
metadata:
creationTimestamp: null
name: rabbitmq-password
namespace: bl45p

28 changes: 28 additions & 0 deletions services/daq-rabbitmq/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
rabbitmq:
auth:
username: p45
existingPasswordSecret: rabbitmq-password
extraPlugins: rabbitmq_jms_topic_exchange,rabbitmq_stomp
persistence:
enabled: false
rbac:
create: false
serviceAccount:
create: false
name: default-full-access-mounted # TODO: use only required permissions
extraContainerPorts:
- name: stomp
containerPort: 61613
service:
type: LoadBalancer
loadBalancerIP: 172.23.168.219 # This static IP is mapped to directly from a DNS entry for p45-rabbitmq-daq.diamond.ac.uk
extraPorts:
- name: stomp
port: 61613
targetPort: stomp
metrics: # TODO: Enable monitoring stack in namespace
enabled: true
podAnnotations:
prometheus.io/scrape: "true"
prometheus.io/path: /metrics
prometheus.io/port: "8080"

0 comments on commit 6ea98a7

Please sign in to comment.