Skip to content
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

Updated the Nodeport changes for rabbitmq and storageclass parameterise #55

Merged
merged 1 commit into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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/ssd/charts/minio/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ persistence:
##
## Storage class of PV to bind. By default it looks for standard storage class.
## If the PV uses a different storage class, specify that here.
storageClass: ""
storageClass: "gp2"
VolumeName: ""
accessMode: ReadWriteOnce
size: 10Gi
Expand Down
12 changes: 12 additions & 0 deletions charts/ssd/ssd-minimal-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,15 @@ ssdgate:
- admin
saml:
saml_initiated_login: false

#################################################################################
# The below storage class for SSD-DB,Tool Chain,Dgraph. If set to empty the default value will be set
storageClass: ""

# Type for the Rabbit MQ, default is LB, can be changed to ClusterIP,NodePort
RabbitServiceType: LoadBalancer

redis:
master:
persistence:
storageClass: ""
7 changes: 7 additions & 0 deletions charts/ssd/templates/dgraph/sts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,11 @@ spec:
resources:
requests:
storage: 5Gi
{{- if .Values.storageClass }}
{{- if (eq "-" .Values.storageClass) }}
storageClassName: ""
{{- else }}
storageClassName: "{{ .Values.storageClass }}"
{{- end }}
{{- end }}
{{- end }}
6 changes: 6 additions & 0 deletions charts/ssd/templates/rabbitmq/ssd-rabbitmq-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,16 @@ spec:
port: 5672
protocol: TCP
targetPort: 5672
{{- if eq .Values.RabbitServiceType "NodePort" }}
nodePort: 30302
{{- end }}
- name: rabbitmq-mgmt
port: 15672
protocol: TCP
targetPort: 15672
{{- if eq .Values.RabbitServiceType "NodePort" }}
nodePort: 32372
{{- end }}
selector:
app: ssd
component: ssd-rabbitmq
10 changes: 7 additions & 3 deletions charts/ssd/templates/ssd-db/ssd-db-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,12 @@ spec:
requests:
storage: {{ .Values.db.storageMountSize }}
volumeMode: Filesystem
{{- if .Values.db.storageClassName }}
storageClassName: {{ .Values.db.storageClassName }}
{{- end -}}
{{- if .Values.storageClass }}
{{- if (eq "-" .Values.storageClass) }}
storageClassName: ""
{{- else }}
storageClassName: "{{ .Values.storageClass }}"
{{- end }}
{{- end }}
{{- end -}}
{{- end -}}
7 changes: 7 additions & 0 deletions charts/ssd/templates/toolchain/toolchain-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,13 @@ spec:
requests:
storage: {{ .Values.toolchain.persistence.size }}
volumeMode: Filesystem
{{- if .Values.storageClass }}
{{- if (eq "-" .Values.storageClass) }}
storageClassName: ""
{{- else }}
storageClassName: "{{ .Values.storageClass }}"
{{- end }}
{{- end }}
{{- end }}
restartPolicy: Always
{{- with .Values.nodeSelector }}
Expand Down