Skip to content

Commit

Permalink
Make sure rabbitmq set up properly and test env allows reproducibility (
Browse files Browse the repository at this point in the history
  • Loading branch information
ikavgo authored Jun 24, 2022
1 parent ef40a92 commit 5a7e3ff
Show file tree
Hide file tree
Showing 11 changed files with 108 additions and 0 deletions.
10 changes: 10 additions & 0 deletions samples/broker-trigger/quick-setup/200-rabbitmq.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,13 @@ metadata:
namespace: broker-trigger-demo
spec:
replicas: 1
override:
statefulSet:
spec:
template:
spec:
containers:
- name: rabbitmq
env:
- name: ERL_MAX_PORTS
value: "4096"
12 changes: 12 additions & 0 deletions samples/broker-trigger/quick-setup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,21 @@ metadata:
namespace: broker-trigger-demo
spec:
replicas: 1
override:
statefulSet:
spec:
template:
spec:
containers:
- name: rabbitmq
env:
- name: ERL_MAX_PORTS
value: "4096"
EOF
```

_NOTE_: here we set ERL_MAX_PORTS to prevent unnecessary memory allocation by RabbitMQ and potential memory limit problems. [Read more here](https://github.com/rabbitmq/cluster-operator/issues/959)

### Create the RabbitMQ Broker Config

```sh
Expand Down
10 changes: 10 additions & 0 deletions samples/broker-trigger/tracing/400-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,13 @@ metadata:
namespace: rmqbroker
spec:
replicas: 1
override:
statefulSet:
spec:
template:
spec:
containers:
- name: rabbitmq
env:
- name: ERL_MAX_PORTS
value: "4096"
10 changes: 10 additions & 0 deletions samples/broker-trigger/trigger-customizations/200-rabbitmq.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,13 @@ metadata:
namespace: trigger-demo
spec:
replicas: 1
override:
statefulSet:
spec:
template:
spec:
containers:
- name: rabbitmq
env:
- name: ERL_MAX_PORTS
value: "4096"
13 changes: 13 additions & 0 deletions samples/broker-trigger/trigger-customizations/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,22 @@ metadata:
namespace: trigger-demo
spec:
replicas: 1
override:
statefulSet:
spec:
template:
spec:
containers:
- name: rabbitmq
env:
- name: ERL_MAX_PORTS
value: "4096"
EOF
```

_NOTE_: here we set ERL_MAX_PORTS to prevent unnecessary memory allocation by RabbitMQ and potential memory limit problems. [Read more here](https://github.com/rabbitmq/cluster-operator/issues/959)


### Create the RabbitMQ Broker Config

```sh
Expand Down
10 changes: 10 additions & 0 deletions samples/multiple-namespaces/200-rabbitmq-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,13 @@ metadata:
rabbitmq.com/topology-allowed-namespaces: "*"
spec:
replicas: 1
override:
statefulSet:
spec:
template:
spec:
containers:
- name: rabbitmq
env:
- name: ERL_MAX_PORTS
value: "4096"
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ spec:
containers:
- image: rabbitmq:3-management
name: rabbitmq
env:
- name: ERL_MAX_PORTS
value: "4096"
ports:
- containerPort: 15672
- containerPort: 5672
Expand Down
10 changes: 10 additions & 0 deletions samples/source/quick-setup/200-rabbitmq.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,13 @@ metadata:
namespace: source-demo
spec:
replicas: 1
override:
statefulSet:
spec:
template:
spec:
containers:
- name: rabbitmq
env:
- name: ERL_MAX_PORTS
value: "4096"
10 changes: 10 additions & 0 deletions test/conformance/resources/rabbitmqcluster/rabbitmqcluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,13 @@ spec:
requests:
cpu: "100m"
memory: "1Gi"
override:
statefulSet:
spec:
template:
spec:
containers:
- name: rabbitmq
env:
- name: ERL_MAX_PORTS
value: "4096"
10 changes: 10 additions & 0 deletions test/e2e/config/rabbitmq/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,13 @@ spec:
requests:
cpu: "400m"
memory: "600Mi"
override:
statefulSet:
spec:
template:
spec:
containers:
- name: rabbitmq
env:
- name: ERL_MAX_PORTS
value: "4096"
10 changes: 10 additions & 0 deletions test/e2e/config/rabbitmqvhost/clustervhost.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@ spec:
requests:
cpu: "400m"
memory: "600Mi"
override:
statefulSet:
spec:
template:
spec:
containers:
- name: rabbitmq
env:
- name: ERL_MAX_PORTS
value: "4096"
rabbitmq:
additionalConfig: |
default_vhost = test-vhost
Expand Down

0 comments on commit 5a7e3ff

Please sign in to comment.