Skip to content

Commit 930d705

Browse files
committed
2 parents e96fa74 + 5c2a78d commit 930d705

51 files changed

Lines changed: 4725 additions & 4 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

addons/index.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ entries:
1515
rabbitmq:
1616
- version: 3.12
1717
description: "RabbitMQ is the most widely deployed open source message broker."
18+
- version: "4.0"
19+
description: "RabbitMQ is the most widely deployed open source message broker."
1820
redis:
1921
- version: 7.0
2022
description: "Redis is an advanced key-value cache and store."

addons/minio/2023/plans/standard-v4s3096/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ persistence:
4545
- ReadWriteOnce
4646
## @param persistence.size PVC Storage Request for MinIO® data volume
4747
##
48-
size: 2Ti
48+
size: 3Ti

addons/rabbitmq/3.12/meta.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ instances_retrievable: true
1515
bindings_retrievable: true
1616
plan_updateable: true
1717
allow_parameters:
18+
- name: "auth"
19+
required: false
20+
description: "auth config for values.yaml"
1821
- name: "nodeSelector"
1922
required: false
2023
description: "nodeSelector config for values.yaml"

addons/rabbitmq/3.12/plans/standard-16c32g3w/bind.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,12 @@ credential:
4444
name: {{ include "common.names.fullname" . }}
4545
jsonpath: '{ .data.rabbitmq-password }'
4646
{{- end }}
47+
48+
{{- if (include "rabbitmq.createTlsSecret" . ) }}
49+
{{- $secretName := printf "%s-certs" (include "common.names.fullname" .) }}
50+
- name: CA_CRT
51+
valueFrom:
52+
secretKeyRef:
53+
name: {{ $secretName }}
54+
jsonpath: '{ .data.ca\.crt }'
55+
{{- end }}

addons/rabbitmq/3.12/plans/standard-2c4g3w/bind.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,12 @@ credential:
4444
name: {{ include "common.names.fullname" . }}
4545
jsonpath: '{ .data.rabbitmq-password }'
4646
{{- end }}
47+
48+
{{- if (include "rabbitmq.createTlsSecret" . ) }}
49+
{{- $secretName := printf "%s-certs" (include "common.names.fullname" .) }}
50+
- name: CA_CRT
51+
valueFrom:
52+
secretKeyRef:
53+
name: {{ $secretName }}
54+
jsonpath: '{ .data.ca\.crt }'
55+
{{- end }}

addons/rabbitmq/3.12/plans/standard-4c8g3w/bind.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,12 @@ credential:
4444
name: {{ include "common.names.fullname" . }}
4545
jsonpath: '{ .data.rabbitmq-password }'
4646
{{- end }}
47+
48+
{{- if (include "rabbitmq.createTlsSecret" . ) }}
49+
{{- $secretName := printf "%s-certs" (include "common.names.fullname" .) }}
50+
- name: CA_CRT
51+
valueFrom:
52+
secretKeyRef:
53+
name: {{ $secretName }}
54+
jsonpath: '{ .data.ca\.crt }'
55+
{{- end }}

addons/rabbitmq/3.12/plans/standard-8c16g3w/bind.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,12 @@ credential:
4444
name: {{ include "common.names.fullname" . }}
4545
jsonpath: '{ .data.rabbitmq-password }'
4646
{{- end }}
47+
48+
{{- if (include "rabbitmq.createTlsSecret" . ) }}
49+
{{- $secretName := printf "%s-certs" (include "common.names.fullname" .) }}
50+
- name: CA_CRT
51+
valueFrom:
52+
secretKeyRef:
53+
name: {{ $secretName }}
54+
jsonpath: '{ .data.ca\.crt }'
55+
{{- end }}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
annotations:
2+
category: Infrastructure
3+
apiVersion: v2
4+
appVersion: "4.0"
5+
dependencies:
6+
- name: common
7+
repository: oci://registry.drycc.cc/charts
8+
version: ~1.1.4
9+
description: RabbitMQ is an open source general-purpose message broker that is designed for consistent, highly-available messaging scenarios (both synchronous and asynchronous).
10+
engine: gotpl
11+
home: https://github.com/bitnami/charts/tree/master/bitnami/rabbitmq
12+
icon: https://bitnami.com/assets/stacks/rabbitmq/img/rabbitmq-stack-220x234.png
13+
keywords:
14+
- rabbitmq
15+
- message queue
16+
- AMQP
17+
maintainers:
18+
- name: Broadcom, Inc. All Rights Reserved.
19+
url: https://github.com/bitnami/charts
20+
name: rabbitmq
21+
sources:
22+
- https://github.com/bitnami/charts/tree/main/bitnami/rabbitmq
23+
version: 15.3.3

addons/rabbitmq/4.0/chart/rabbitmq-4.0/README.md

Lines changed: 712 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
CHART NAME: {{ .Chart.Name }}
2+
CHART VERSION: {{ .Chart.Version }}
3+
APP VERSION: {{ .Chart.AppVersion }}
4+
5+
{{- $servicePort := or (.Values.service.portEnabled) (not .Values.auth.tls.enabled) | ternary .Values.service.ports.amqp .Values.service.ports.amqpTls -}}
6+
7+
** Please be patient while the chart is being deployed **
8+
9+
{{- if .Values.diagnosticMode.enabled }}
10+
The chart has been deployed in diagnostic mode. All probes have been disabled and the command has been overwritten with:
11+
12+
command: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.command "context" $) | nindent 4 }}
13+
args: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.args "context" $) | nindent 4 }}
14+
15+
Get the list of pods by executing:
16+
17+
kubectl get pods --namespace {{ .Release.Namespace }} -l app.kubernetes.io/instance={{ .Release.Name }}
18+
19+
Access the pod you want to debug by executing
20+
21+
kubectl exec --namespace {{ .Release.Namespace }} -ti <NAME OF THE POD> -- bash
22+
23+
In order to replicate the container startup scripts execute this command:
24+
25+
/opt/drycc/scripts/rabbitmq/entrypoint.sh /opt/drycc/scripts/rabbitmq/run.sh
26+
27+
{{- else }}
28+
29+
Credentials:
30+
31+
{{- if not .Values.loadDefinition.enabled }}
32+
echo "Username : {{ .Values.auth.username }}"
33+
echo "Password : $(kubectl get secret --namespace {{ .Release.Namespace }} {{ include "rabbitmq.secretPasswordName" . }} -o jsonpath="{.data.rabbitmq-password}" | base64 -d)"
34+
{{- end }}
35+
echo "ErLang Cookie : $(kubectl get secret --namespace {{ .Release.Namespace }} {{ include "rabbitmq.secretErlangName" . }} -o jsonpath="{.data.rabbitmq-erlang-cookie}" | base64 -d)"
36+
37+
Note that the credentials are saved in persistent volume claims and will not be changed upon upgrade or reinstallation unless the persistent volume claim has been deleted. If this is not the first installation of this chart, the credentials may not be valid.
38+
This is applicable when no passwords are set and therefore the random password is autogenerated. In case of using a fixed password, you should specify it when upgrading.
39+
More information about the credentials may be found at https://docs.bitnami.com/general/how-to/troubleshoot-helm-chart-issues/#credential-errors-while-upgrading-chart-releases.
40+
41+
RabbitMQ can be accessed within the cluster on port {{ $servicePort }} at {{ include "common.names.fullname" . }}.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}
42+
43+
To access for outside the cluster, perform the following steps:
44+
45+
{{- if .Values.ingress.enabled }}
46+
{{- if contains "NodePort" .Values.service.type }}
47+
48+
To Access the RabbitMQ AMQP port:
49+
50+
1. Obtain the NodePort IP and ports:
51+
52+
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
53+
export NODE_PORT_AMQP=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[?(@.name=='amqp')].nodePort}" services {{ include "common.names.fullname" . }})
54+
echo "URL : amqp://$NODE_IP:$NODE_PORT_AMQP/"
55+
56+
{{- else if contains "LoadBalancer" .Values.service.type }}
57+
58+
To Access the RabbitMQ AMQP port:
59+
60+
1. Obtain the LoadBalancer IP:
61+
62+
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
63+
Watch the status with: 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ include "common.names.fullname" . }}'
64+
65+
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "common.names.fullname" . }} --template "{{ "{{ range (index .status.loadBalancer.ingress 0) }}{{ . }}{{ end }}" }}")
66+
echo "URL : amqp://$SERVICE_IP:{{ $servicePort }}/"
67+
68+
{{- else if contains "ClusterIP" .Values.service.type }}
69+
70+
To Access the RabbitMQ AMQP port:
71+
72+
1. Create a port-forward to the AMQP port:
73+
74+
kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ include "common.names.fullname" . }} {{ $servicePort }}:{{ $servicePort }} &
75+
echo "URL : amqp://127.0.0.1:{{ $servicePort }}/"
76+
77+
{{- end }}
78+
79+
2. Access RabbitMQ using using the obtained URL.
80+
81+
To Access the RabbitMQ Management interface:
82+
83+
1. Get the RabbitMQ Management URL and associate its hostname to your cluster external IP:
84+
85+
export CLUSTER_IP=$(minikube ip) # On Minikube. Use: `kubectl cluster-info` on others K8s clusters
86+
echo "RabbitMQ Management: http{{ if .Values.ingress.tls }}s{{ end }}://{{ .Values.ingress.hostname }}/"
87+
echo "$CLUSTER_IP {{ .Values.ingress.hostname }}" | sudo tee -a /etc/hosts
88+
89+
2. Open a browser and access RabbitMQ Management using the obtained URL.
90+
91+
{{- else }}
92+
{{- if contains "NodePort" .Values.service.type }}
93+
94+
Obtain the NodePort IP and ports:
95+
96+
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
97+
export NODE_PORT_AMQP=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[?(@.name=='amqp')].nodePort}" services {{ include "common.names.fullname" . }})
98+
export NODE_PORT_STATS=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[?(@.name=='http-stats')].nodePort}" services {{ include "common.names.fullname" . }})
99+
100+
To Access the RabbitMQ AMQP port:
101+
102+
echo "URL : amqp://$NODE_IP:$NODE_PORT_AMQP/"
103+
104+
To Access the RabbitMQ Management interface:
105+
106+
echo "URL : http://$NODE_IP:$NODE_PORT_STATS/"
107+
108+
{{- else if contains "LoadBalancer" .Values.service.type }}
109+
110+
Obtain the LoadBalancer IP:
111+
112+
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
113+
Watch the status with: 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ include "common.names.fullname" . }}'
114+
115+
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "common.names.fullname" . }} --template "{{ "{{ range (index .status.loadBalancer.ingress 0) }}{{ . }}{{ end }}" }}")
116+
117+
To Access the RabbitMQ AMQP port:
118+
119+
echo "URL : amqp://$SERVICE_IP:{{ $servicePort }}/"
120+
121+
To Access the RabbitMQ Management interface:
122+
123+
echo "URL : http://$SERVICE_IP:{{ .Values.service.ports.manager }}/"
124+
125+
{{- else if contains "ClusterIP" .Values.service.type }}
126+
127+
To Access the RabbitMQ AMQP port:
128+
129+
echo "URL : amqp://127.0.0.1:{{ $servicePort }}/"
130+
kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ include "common.names.fullname" . }} {{ $servicePort }}:{{ $servicePort }}
131+
132+
To Access the RabbitMQ Management interface:
133+
134+
echo "URL : http://127.0.0.1:{{ .Values.service.ports.manager }}/"
135+
kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ include "common.names.fullname" . }} {{ .Values.service.ports.manager }}:{{ .Values.service.ports.manager }}
136+
137+
{{- end }}
138+
{{- end }}
139+
140+
{{- if .Values.metrics.enabled }}
141+
142+
To access the RabbitMQ Prometheus metrics, get the RabbitMQ Prometheus URL by running:
143+
144+
kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ include "common.names.fullname" . }} {{ .Values.service.ports.metrics }}:{{ .Values.service.ports.metrics }} &
145+
echo "Prometheus Metrics URL: http://127.0.0.1:{{ .Values.service.ports.metrics }}/metrics"
146+
147+
Then, open the obtained URL in a browser.
148+
149+
{{- if .Values.metrics.serviceMonitor.enabled }}
150+
Deprecated: `metrics.serviceMonitor.enabled` is deprecated.
151+
Please use `metrics.serviceMonitor.{default/perObject/detailed}` to enable metrics scraping on one of the metrics endpoints.
152+
See: https://www.rabbitmq.com/docs/prometheus#default-endpoint
153+
{{- end }}
154+
155+
{{- end }}
156+
157+
{{- include "common.warnings.rollingTag" .Values.image }}
158+
{{- include "common.warnings.rollingTag" .Values.volumePermissions.image }}
159+
160+
{{- end }}
161+
{{- include "common.warnings.resources" (dict "sections" (list "" "volumePermissions") "context" $) }}
162+
{{- include "common.warnings.modifiedImages" (dict "images" (list .Values.image .Values.volumePermissions.image) "context" $) }}
163+
{{- include "common.errors.insecureImages" (dict "images" (list .Values.image .Values.volumePermissions.image) "context" $) }}

0 commit comments

Comments
 (0)