Skip to content

Instantly share code, notes, and snippets.

@rafaeltuelho
Created February 17, 2023 20:33
Show Gist options
  • Save rafaeltuelho/af3e01c84c7b1cd0ce439bdeb98e571e to your computer and use it in GitHub Desktop.
Save rafaeltuelho/af3e01c84c7b1cd0ce439bdeb98e571e to your computer and use it in GitHub Desktop.
Artemis Broker for AMQP Custom Resource using artemiscloud.io operator
apiVersion: broker.amq.io/v1beta1
kind: ActiveMQArtemis
metadata:
name: artemis-broker-amqp
spec:
adminUser: admin
adminPassword: $secret$
acceptors:
- name: amqp
expose: true
protocols: "AMQP"
port: 5672
addressSettings:
addressSetting:
- autoCreateAddresses: true
- autoCreateQueues: true
- enableMetrics: true
console:
expose: true
useClientAuth: false
deploymentPlan:
enableMetricsPlugin: true
@rafaeltuelho
Copy link
Author

install the Artemis Cloud Operator using this script:

#!/bin/bash

echo "Deploying operator to watch single namespace"

GIT_REPO_RAW_URL=https://raw.githubusercontent.com/artemiscloud/activemq-artemis-operator/main/deploy
if oc version; then
    KUBE_CLI=oc
else
    KUBE_CLI=kubectl
fi

$KUBE_CLI create -f $DEPLOY_PATH/crds/broker_activemqartemis_crd.yaml
$KUBE_CLI create -f $DEPLOY_PATH/crds/broker_activemqartemisaddress_crd.yaml
$KUBE_CLI create -f $DEPLOY_PATH/crds/broker_activemqartemisscaledown_crd.yaml
$KUBE_CLI create -f $DEPLOY_PATH/crds/broker_activemqartemissecurity_crd.yaml
$KUBE_CLI create -f $GIT_REPO_RAW_URL/service_account.yaml
$KUBE_CLI create -f $GIT_REPO_RAW_URL/role.yaml
$KUBE_CLI create -f $GIT_REPO_RAW_URL/role_binding.yaml
$KUBE_CLI create -f $GIT_REPO_RAW_URL/election_role.yaml
$KUBE_CLI create -f $GIT_REPO_RAW_URL/election_role_binding.yaml
$KUBE_CLI create -f $GIT_REPO_RAW_URL/operator_config.yaml
$KUBE_CLI create -f $GIT_REPO_RAW_URL/operator.yaml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment