Skip to content

Rabbitmq helm #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 27 commits into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
f1ce7b0
Merge pull request #2 from makeplane/develop
mguptahub Jun 14, 2024
b9cc881
Merge pull request #4 from makeplane/develop
mguptahub Jun 14, 2024
07827c5
Merge pull request #6 from makeplane/develop
mguptahub Jun 14, 2024
5318775
Merge pull request #8 from makeplane/develop
mguptahub Jun 14, 2024
07bb742
Merge pull request #10 from makeplane/develop
mguptahub Jun 17, 2024
6bf2578
Merge pull request #12 from makeplane/develop
mguptahub Jun 17, 2024
2321889
Merge pull request #14 from makeplane/develop
mguptahub Jun 17, 2024
d095f17
Merge pull request #16 from makeplane/develop
mguptahub Jun 21, 2024
ef57e5b
Merge pull request #18 from makeplane/develop
mguptahub Jul 3, 2024
101c3bf
Merge pull request #25 from makeplane/develop
mguptahub Aug 14, 2024
4ad23d2
rabbitmq service helm chart
akshat5302 Aug 29, 2024
341b2b2
fix: rabbitmq remote url condition
akshat5302 Aug 30, 2024
f2ed032
add questions.yml
akshat5302 Aug 30, 2024
35357ce
fix: removed extra space
akshat5302 Aug 30, 2024
cf39bd1
add default user as guest
akshat5302 Aug 30, 2024
2eab429
fix: default_rabbitmq_pass var name default password
akshat5302 Sep 2, 2024
723fb29
changed rabbitmw service according to cloud
akshat5302 Sep 3, 2024
8df7d7f
changed rabbit mq service name
akshat5302 Sep 3, 2024
3594daf
helm chart version change
akshat5302 Sep 3, 2024
0584657
fix: code review changes
akshat5302 Sep 3, 2024
4b67617
Merge branch 'develop' of https://github.com/makeplane/helm-charts in…
akshat5302 Sep 3, 2024
d1f2153
Chart Version change
akshat5302 Sep 4, 2024
5e02e9d
Changed rabbitmq volume default value
akshat5302 Sep 4, 2024
ec082a5
updated storage size
akshat5302 Sep 4, 2024
e820d59
Mg1 (#32)
mguptahub Sep 4, 2024
366c74e
add: rabbitmq service to plane-ee helm
akshat5302 Sep 4, 2024
70e4800
fix: removed additional clusterIP from rabbitmq questions.yml
akshat5302 Sep 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/plane-ce/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: Meet Plane. An open-source software development tool to manage issu

type: application

version: 1.0.21
version: 1.0.22
appVersion: "0.22.0"

home: https://plane.so
Expand Down
46 changes: 46 additions & 0 deletions charts/plane-ce/questions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,52 @@ questions:
default: "postrgres://"
show_if: "postgres.local_setup=false"

- variable: services.rabbitmq.local_setup
label: "Install RabbitMQ"
type: boolean
default: true
group: "RabbitMQ Setup"
subquestions:
- variable: services.rabbitmq.image
label: "Docker Image"
type: string
default: "rabbitmq:3.13.6-management-alpine"
show_if: "services.rabbitmq.local_setup=true"
- variable: services.rabbitmq.servicePort
label: Service Port
type: int
default: 5672
show_if: "services.rabbitmq.local_setup=true"
- variable: services.rabbitmq.managementPort
label: Management Port
type: int
default: 15672
show_if: "services.rabbitmq.local_setup=true"
- variable: services.rabbitmq.storageClass
label: "Storage Class"
type: string
default: "longhorn"
show_if: "services.rabbitmq.local_setup=true"
- variable: services.rabbitmq.volumeSize
label: "Volume Size"
type: string
default: "500Mi"
show_if: "services.rabbitmq.local_setup=true"
- variable: services.rabbitmq.default_user
label: "Username"
type: string
default: "plane"
show_if: "services.rabbitmq.local_setup=true"
- variable: services.rabbitmq.default_password
label: "Password"
type: password
default: "plane"
show_if: "services.rabbitmq.local_setup=true"
- variable: services.rabbitmq.external_rabbitmq_url
label: "Remote URL"
type: string
show_if: "services.rabbitmq.local_setup=false"

- variable: minio.local_setup
label: "Install Minio"
type: boolean
Expand Down
8 changes: 8 additions & 0 deletions charts/plane-ce/templates/config-secrets/app-env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,11 @@ data:
{{- else }}
DATABASE_URL: ""
{{ end }}

{{- if .Values.rabbitmq.local_setup }}
AMQP_URL: "amqp://{{ .Values.rabbitmq.default_user}}:{{ .Values.rabbitmq.default_password}}@{{ .Release.Name }}-rabbitmq.{{ .Release.Namespace }}.svc.{{ .Values.env.default_cluster_domain | default "cluster.local" }}/"
{{- else if .Values.rabbitmq.external_rabbitmq_url }}
AMQP_URL: {{ .Values.rabbitmq.external_rabbitmq_url}}
{{- else }}
AMQP_URL: ""
{{ end }}
14 changes: 14 additions & 0 deletions charts/plane-ce/templates/config-secrets/rabbitmqdb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{{- if .Values.rabbitmq.local_setup -}}

apiVersion: v1
kind: Secret
type: Opaque
metadata:
namespace: {{ .Release.Namespace }}
name: {{ .Release.Name }}-rabbitmq-secrets
data:
RABBITMQ_DEFAULT_USER: {{ .Values.rabbitmq.default_user | default "plane" | b64enc | quote }}
RABBITMQ_DEFAULT_PASS: {{ .Values.rabbitmq.default_password | default "plane" | b64enc |quote }}
---

{{- end -}}
71 changes: 71 additions & 0 deletions charts/plane-ce/templates/workloads/rabbitmq.stateful.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{{- if .Values.rabbitmq.local_setup }}

apiVersion: v1
kind: Service
metadata:
namespace: {{ .Release.Namespace }}
name: {{ .Release.Name }}-rabbitmq
labels:
app.name: {{ .Release.Namespace }}-{{ .Release.Name }}-rabbitmq
spec:
clusterIP: None
ports:
- name: rabbitmq-{{ .Values.rabbitmq.servicePort }}
port: {{ .Values.rabbitmq.servicePort }}
protocol: TCP
targetPort: 5672
- name: rabbitmq-mgmt-{{ .Values.rabbitmq.managementPort }}
port: {{ .Values.rabbitmq.managementPort }}
protocol: TCP
targetPort: 15672
selector:
app.name: {{ .Release.Namespace }}-{{ .Release.Name }}-rabbitmq
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
namespace: {{ .Release.Namespace }}
name: {{ .Release.Name }}-rabbitmq-wl
spec:
selector:
matchLabels:
app.name: {{ .Release.Namespace }}-{{ .Release.Name }}-rabbitmq
serviceName: {{ .Release.Name }}-rabbitmq
template:
metadata:
labels:
app.name: {{ .Release.Namespace }}-{{ .Release.Name }}-rabbitmq
spec:
containers:
- image: {{ .Values.rabbitmq.image }}
imagePullPolicy: Always
name: {{ .Release.Name }}-rabbitmq
stdin: true
tty: true
envFrom:
- secretRef:
name: {{ .Release.Name }}-rabbitmq-secrets
optional: false
volumeMounts:
- mountPath: /var/lib/rabbitmq
name: pvc-{{ .Release.Name }}-rabbitmq-vol
subPath: ''
serviceAccount: {{ .Release.Name }}-srv-account
serviceAccountName: {{ .Release.Name }}-srv-account
volumeClaimTemplates:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
creationTimestamp: null
namespace: {{ .Release.Namespace }}
name: pvc-{{ .Release.Name }}-rabbitmq-vol
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: {{ .Values.rabbitmq.volumeSize | default "1Gi" | quote }}
storageClassName: {{ .Values.rabbitmq.storageClass }}
volumeMode: Filesystem

{{- end }}
11 changes: 11 additions & 0 deletions charts/plane-ce/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,17 @@ postgres:
volumeSize: 5Gi
pullPolicy: IfNotPresent

rabbitmq:
local_setup: true
image: rabbitmq:3-management
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change the image to rabbitmq:3.13.6-management-alpine

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed to rabbitmq:3.13.6-management-alpine

servicePort: 5672
managementPort: 15672
storageClass: longhorn
volumeSize: 500Mi
default_user: plane
default_password: plane
external_rabbitmq_url: ''

minio:
image: minio/minio:latest
local_setup: true
Expand Down