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

fix(helm): add NodePort services for debugging (#812) #812

Merged
merged 2 commits into from
Jul 31, 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
1 change: 1 addition & 0 deletions AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ organisation on GitHub, in alphabetical order:
- [Giuseppe Steduto](https://orcid.org/0009-0002-1258-8553)
- [Harri Hirvonsalo](https://orcid.org/0000-0002-5503-510X)
- [Jan Okraska](https://orcid.org/0000-0002-1416-3244)
- [Jelizaveta Lemeševa](https://orcid.org/0009-0003-6606-9270)
- [Jose Benito Gonzalez Lopez](https://orcid.org/0000-0002-0816-7126)
- [Kati Lassila-Perini](https://orcid.org/0000-0002-5502-1795)
- [Kenyi Hurtado-Anampa](https://orcid.org/0000-0002-9779-3566)
Expand Down
17 changes: 17 additions & 0 deletions helm/reana/templates/reana-db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,23 @@ spec:
- port: 5432
targetPort: 5432
protocol: TCP
{{- if .Values.debug.enabled }}
---
apiVersion: v1
kind: Service
metadata:
name: {{ include "reana.prefix" . }}-db-debug
namespace: {{ .Release.Namespace }}
spec:
type: "NodePort"
selector:
app: {{ include "reana.prefix" . }}-db
ports:
- port: 5432
targetPort: 5432
nodePort: 30432
protocol: TCP
{{- end }}
---
apiVersion: apps/v1
kind: Deployment
Expand Down
25 changes: 18 additions & 7 deletions helm/reana/templates/reana-message-broker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,30 @@ spec:
targetPort: 5672
name: "tcp"
protocol: TCP
{{- if .Values.debug.enabled }}
- port: 31672
targetPort: 15672
name: "management"
protocol: TCP
{{- else }}
- port: 15672
targetPort: 15672
name: "management"
protocol: TCP
{{- end }}
selector:
app: {{ include "reana.prefix" . }}-message-broker
{{- if .Values.debug.enabled }}
---
apiVersion: v1
kind: Service
metadata:
name: {{ include "reana.prefix" . }}-message-broker-debug
namespace: {{ .Release.Namespace }}
spec:
type: "NodePort"
selector:
app: {{ include "reana.prefix" . }}-message-broker
ports:
- port: 15672
targetPort: 15672
nodePort: 31672
name: "management"
protocol: TCP
{{- end }}
---
apiVersion: apps/v1
kind: StatefulSet
Expand Down
5 changes: 5 additions & 0 deletions reana/reana_dev/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ def add_volume_mounts(node):
"hostPort": 31672,
"protocol": "TCP",
}, # rabbitmq
{
"containerPort": 30432,
"hostPort": 30432,
"protocol": "TCP",
}, # postgresql
]
)

Expand Down
Loading