From 611c197650104f849e28fe092ac6decef6eeb142 Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Tue, 18 Mar 2025 13:07:15 +0100 Subject: [PATCH] ``` Add backup configuration for Artemis broker deployment This commit introduces a new backup configuration for the Artemis broker by adding a Deployment under the `artemis-broker-backup` section in the Helm chart values file. The configuration supports high availability with an active-passive mode, where 'broker2' is set as the backup broker and references 'broker1' as the active broker. The backup broker will use the AMQ broker image defined in the registry, deploy at node port 30004, and route traffic through an ingress with the specified domain of tuxnet.lan. With this change, administrators can ensure redundancy and improved availability for message brokering services. No existing functionality is impacted. ``` --- .../values_helmChart__primary.yaml | 36 ++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/artemis-broker-primary/values_helmChart__primary.yaml b/artemis-broker-primary/values_helmChart__primary.yaml index 4b8dedd..c286a7d 100644 --- a/artemis-broker-primary/values_helmChart__primary.yaml +++ b/artemis-broker-primary/values_helmChart__primary.yaml @@ -24,4 +24,38 @@ affinity: {} # - key: disktype # operator: In # values: -# - ssd \ No newline at end of file +# - ssd + + +artemis-broker-backup: + kind: Deployment + clustered: true + cluster: + ha_ap_mode: true + ha_ap: + mode: backup + connector: + ref: broker2 + static: + ref: broker1 + application: + name: broker2 + amq_broker_image: registry.tuxnet.lan/amq7/amq-broker-rhel8 + + nodeport: + port: 30004 + + ingress: + domain: tuxnet.lan + + + # k8s affinity for node binding + affinity: {} + # nodeAffinity: + # requiredDuringSchedulingIgnoredDuringExecution: + # nodeSelectorTerms: + # - matchExpressions: + # - key: disktype + # operator: In + # values: + # - ssd \ No newline at end of file