Skip to content

Commit 6f63c88

Browse files
committed
chore(rabbitmq): add plans
1 parent 72ab8a7 commit 6f63c88

21 files changed

Lines changed: 414 additions & 10 deletions

addons/rabbitmq/3.12/plans/standard-1024/meta.yaml

Lines changed: 0 additions & 6 deletions
This file was deleted.
File renamed without changes.

addons/rabbitmq/3.12/plans/standard-1024/create-instance-schema.json renamed to addons/rabbitmq/3.12/plans/standard-16c32g/create-instance-schema.json

File renamed without changes.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: "standard-16c32g"
2+
id: 2c036b60-e5d0-4a29-a868-3cd5f8626480
3+
description: "RabbitMQ standard-16c32g plan which limit resources 16 cores 32G memory."
4+
displayName: "standard-16c32g"
5+
bindable: true
6+
maximum_polling_duration: 1800
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
## @param fullnameOverride String to fully override rabbitmq.fullname template
2+
##
3+
fullnameOverride: hb-rabbitmq-standard-16c32g
4+
5+
## RabbitMQ containers' resource requests and limits
6+
## ref: https://kubernetes.io/docs/user-guide/compute-resources/
7+
## We usually recommend not to specify default resources and to leave this as a conscious
8+
## choice for the user. This also increases chances charts run on environments with little
9+
## resources, such as Minikube. If you do want to specify resources, uncomment the following
10+
## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
11+
## @param resources.limits The resources limits for RabbitMQ containers
12+
## @param resources.requests The requested resources for RabbitMQ containers
13+
##
14+
resources:
15+
limits:
16+
cpu: 16000m
17+
memory: 32Gi
18+
requests:
19+
cpu: 1600m
20+
memory: 16Gi
21+
22+
## @param replicaCount Number of RabbitMQ replicas to deploy
23+
##
24+
replicaCount: 3
25+
26+
## @section Persistence parameters
27+
##
28+
29+
persistence:
30+
## @param persistence.enabled Enable RabbitMQ data persistence using PVC
31+
##
32+
enabled: true
33+
## @param persistence.storageClass PVC Storage Class for RabbitMQ data volume
34+
## If defined, storageClassName: <storageClass>
35+
## If set to "-", storageClassName: "", which disables dynamic provisioning
36+
## If undefined (the default) or set to null, no storageClassName spec is
37+
## set, choosing the default provisioner. (gp2 on AWS, standard on
38+
## GKE, AWS & OpenStack)
39+
##
40+
storageClass: ""
41+
## @param persistence.accessModes PVC Access Modes for RabbitMQ data volume
42+
##
43+
accessModes:
44+
- ReadWriteOnce
45+
## @param persistence.size PVC Storage Request for RabbitMQ data volume
46+
## If you change this value, you might have to adjust `rabbitmq.diskFreeLimit` as well
47+
##
48+
size: 64Gi
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
credential:
2+
- name: HOST
3+
valueFrom:
4+
serviceRef:
5+
name: {{ include "common.names.fullname" . }}
6+
jsonpath: '{ .status.loadBalancer.ingress[*].ip }'
7+
8+
{{- if or (.Values.service.portEnabled) (not .Values.auth.tls.enabled) }}
9+
- name: RABBITMQ_AMQP_PORT
10+
valueFrom:
11+
serviceRef:
12+
name: {{ include "common.names.fullname" . }}
13+
jsonpath: '{ .spec.ports[?(@.targetPort=="amqp")].port }'
14+
{{- end }}
15+
16+
{{- if .Values.auth.tls.enabled }}
17+
- name: RABBITMQ_AMQP_SSL_PORT
18+
valueFrom:
19+
serviceRef:
20+
name: {{ include "common.names.fullname" . }}
21+
jsonpath: '{ .spec.ports[?(@.targetPort=="amqp-ssl")].port }'
22+
{{- end }}
23+
24+
{{- if .Values.auth.username }}
25+
- name: RABBITMQ_USER
26+
value: {{ .Values.auth.username | quote }}
27+
{{- end }}
28+
29+
{{- if (not .Values.auth.existingPasswordSecret ) }}
30+
- name: RABBITMQ_PASSWORD
31+
valueFrom:
32+
secretKeyRef:
33+
name: {{ include "common.names.fullname" . }}
34+
jsonpath: '{ .data.rabbitmq-password }'
35+
{{- end }}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"type": "object",
4+
"properties": {
5+
"imagePullPolicy": {
6+
"type": "string",
7+
"enum": ["Always", "IfNotPresent", "Never"],
8+
"default": "IfNotPresent",
9+
"title": "Image pull policy"
10+
}
11+
}
12+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: "standard-1c2g"
2+
id: ea882c81-2ca9-47e1-b290-5f630391eb6a
3+
description: "RabbitMQ standard-1c2g plan which limit resources 1 core 2G memory."
4+
displayName: "standard-1c2g"
5+
bindable: true
6+
maximum_polling_duration: 1800

addons/rabbitmq/3.12/plans/standard-1024/values.yaml renamed to addons/rabbitmq/3.12/plans/standard-1c2g/values.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## @param fullnameOverride String to fully override rabbitmq.fullname template
22
##
3-
fullnameOverride: hb-rabbitmq-standard-1024
3+
fullnameOverride: hb-rabbitmq-standard-1c2g
44

55
## RabbitMQ containers' resource requests and limits
66
## ref: https://kubernetes.io/docs/user-guide/compute-resources/
@@ -14,10 +14,10 @@ fullnameOverride: hb-rabbitmq-standard-1024
1414
resources:
1515
limits:
1616
cpu: 1000m
17-
memory: 1024Mi
17+
memory: 2Gi
1818
requests:
1919
cpu: 500m
20-
memory: 512Mi
20+
memory: 1Gi
2121

2222
## @param replicaCount Number of RabbitMQ replicas to deploy
2323
##
@@ -45,4 +45,4 @@ persistence:
4545
## @param persistence.size PVC Storage Request for RabbitMQ data volume
4646
## If you change this value, you might have to adjust `rabbitmq.diskFreeLimit` as well
4747
##
48-
size: 512Mi
48+
size: 4Gi
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
credential:
2+
- name: HOST
3+
valueFrom:
4+
serviceRef:
5+
name: {{ include "common.names.fullname" . }}
6+
jsonpath: '{ .status.loadBalancer.ingress[*].ip }'
7+
8+
{{- if or (.Values.service.portEnabled) (not .Values.auth.tls.enabled) }}
9+
- name: RABBITMQ_AMQP_PORT
10+
valueFrom:
11+
serviceRef:
12+
name: {{ include "common.names.fullname" . }}
13+
jsonpath: '{ .spec.ports[?(@.targetPort=="amqp")].port }'
14+
{{- end }}
15+
16+
{{- if .Values.auth.tls.enabled }}
17+
- name: RABBITMQ_AMQP_SSL_PORT
18+
valueFrom:
19+
serviceRef:
20+
name: {{ include "common.names.fullname" . }}
21+
jsonpath: '{ .spec.ports[?(@.targetPort=="amqp-ssl")].port }'
22+
{{- end }}
23+
24+
{{- if .Values.auth.username }}
25+
- name: RABBITMQ_USER
26+
value: {{ .Values.auth.username | quote }}
27+
{{- end }}
28+
29+
{{- if (not .Values.auth.existingPasswordSecret ) }}
30+
- name: RABBITMQ_PASSWORD
31+
valueFrom:
32+
secretKeyRef:
33+
name: {{ include "common.names.fullname" . }}
34+
jsonpath: '{ .data.rabbitmq-password }'
35+
{{- end }}

0 commit comments

Comments
 (0)