Skip to content

Commit

Permalink
feat: deploy rabbit cluster
Browse files Browse the repository at this point in the history
Signed-off-by: Devin Buhl <devin@buhl.casa>
  • Loading branch information
onedr0p committed Nov 10, 2023
1 parent d495036 commit 32d0f2e
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 0 deletions.
40 changes: 40 additions & 0 deletions kubernetes/apps/database/rabbitmq/cluster/cluster.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.devbu.io/rabbitmq.com/rabbitmqcluster_v1beta1.json
apiVersion: rabbitmq.com/v1beta1
kind: RabbitmqCluster
metadata:
name: rabbitmq
namespace: database
spec:
replicas: 3
rabbitmq:
additionalPlugins:
- rabbitmq_mqtt
- rabbitmq_shovel
- rabbitmq_shovel_management
additionalConfig: |
mqtt.allow_anonymous = true
mqtt.default_user = mqtt
mqtt.default_pass = mqtt
mqtt.vhost = /
mqtt.exchange = amq.topic
mqtt.subscription_ttl = 86400000
mqtt.prefetch = 10
log.file = false
log.console = true
log.console.level = info
log.console.formatter = json
service:
type: LoadBalancer
annotations:
external-dns.alpha.kubernetes.io/hostname: rabbitmq.devbu.io
io.cilium/lb-ipam-ips: 192.168.42.208
persistence:
storageClassName: local-path
storage: 5Gi
resources:
requests:
cpu: 1000m
memory: 1Gi
limits:
memory: 2Gi
7 changes: 7 additions & 0 deletions kubernetes/apps/database/rabbitmq/cluster/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: database
resources:
- ./cluster.yaml
19 changes: 19 additions & 0 deletions kubernetes/apps/database/rabbitmq/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,22 @@ spec:
interval: 30m
retryInterval: 1m
timeout: 15m
---
# yaml-language-server: $schema=https://kubernetes-schemas.devbu.io/kustomize.toolkit.fluxcd.io/kustomization_v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-rabbitmq-cluster
namespace: flux-system
spec:
dependsOn:
- name: cluster-apps-rabbitmq
path: ./kubernetes/apps/database/rabbitmq/cluster
prune: true
sourceRef:
kind: GitRepository
name: home-kubernetes
wait: true
interval: 30m
retryInterval: 1m
timeout: 5m

0 comments on commit 32d0f2e

Please sign in to comment.