Skip to content

Commit

Permalink
Merge a2b509e into c98d4af
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego committed Jul 3, 2020
2 parents c98d4af + a2b509e commit 4bd83a5
Show file tree
Hide file tree
Showing 13 changed files with 237 additions and 52 deletions.
1 change: 1 addition & 0 deletions helm/reana/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ This Helm automatically prefixes all names using the release name to avoid colli
| `notifications.system_status` | Cronjob pattern representing how often the system status notification should be sent. Leave it empty to deactivate it | "0 0 * * *" |
| `reana_url` | REANA URL host | None |
| `default_runtime_namespace` | Namespace in which the REANA runtime pods (workflow engines, jobs etc...) will run | None |
| `dedicated_nodes` | Should the infrastructure and runtime pods be splitted by node? (all nodes in the cluster should be labeled either as `reana-system=infrastructure` or `reana-system=runtime`) | False |
| `secrets.cern.sso.CERN_CONSUMER_KEY` | CERN SSO consumer key | None |
| `secrets.cern.sso.CERN_CONSUMER_SECRET` | **[Do not use in production, use secrets instead]** CERN SSO consumer secret | None |
| `secrets.database.pasword` | **[Do not use in production, use secrets instead]** PostgreSQL database password | None |
Expand Down
7 changes: 7 additions & 0 deletions helm/reana/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,10 @@ naming spec: `my-reana-batch-yadage-3c640169-d3b7-41ad-9c09-392c903fc1d8`
{{- define "reana.prefixed_runtime_svaccount_name" -}}
{{- include "reana.prefix" . -}}-runtime
{{- end -}}

{{- define "reana_sytem_infrastructure_annotations" -}}
{{- if .Values.dedicated_nodes }}
annotations:
scheduler.alpha.kubernetes.io/node-selector: reana-system=infrastructure
{{- end }}
{{- end -}}
1 change: 1 addition & 0 deletions helm/reana/templates/reana-cache.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ kind: Deployment
metadata:
name: {{ include "reana.prefix" . }}-cache
namespace: {{ .Release.Namespace }}
{{- include "reana_sytem_infrastructure_annotations" . }}
spec:
replicas: 1
selector:
Expand Down
1 change: 1 addition & 0 deletions helm/reana/templates/reana-db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ kind: Deployment
metadata:
name: {{ include "reana.prefix" . }}-db
namespace: {{ .Release.Namespace }}
{{- include "reana_sytem_infrastructure_annotations" . }}
spec:
replicas: 1
selector:
Expand Down
3 changes: 2 additions & 1 deletion helm/reana/templates/reana-mail.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ kind: Deployment
metadata:
name: {{ include "reana.prefix" . }}-mail
namespace: {{ .Release.Namespace }}
{{- include "reana_sytem_infrastructure_annotations" . }}
spec:
replicas: 1
selector:
Expand All @@ -38,7 +39,7 @@ spec:
spec:
containers:
- name: maildev
image: maildev/maildev
image: maildev/maildev:1.1.0
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
Expand Down
1 change: 1 addition & 0 deletions helm/reana/templates/reana-message-broker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ kind: Deployment
metadata:
name: {{ include "reana.prefix" . }}-message-broker
namespace: {{ .Release.Namespace }}
{{- include "reana_sytem_infrastructure_annotations" . }}
spec:
replicas: 1
selector:
Expand Down
1 change: 1 addition & 0 deletions helm/reana/templates/reana-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ kind: Deployment
metadata:
name: {{ include "reana.prefix" . }}-server
namespace: {{ .Release.Namespace }}
{{- include "reana_sytem_infrastructure_annotations" . }}
spec:
replicas: 1
selector:
Expand Down
1 change: 1 addition & 0 deletions helm/reana/templates/reana-ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ kind: Deployment
metadata:
name: {{ include "reana.prefix" . }}-ui
namespace: {{ .Release.Namespace }}
{{- include "reana_sytem_infrastructure_annotations" . }}
spec:
replicas: 1
selector:
Expand Down
1 change: 1 addition & 0 deletions helm/reana/templates/reana-wdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ kind: Deployment
metadata:
name: {{ include "reana.prefix" . }}-wdb
namespace: {{ .Release.Namespace }}
{{- include "reana_sytem_infrastructure_annotations" . }}
spec:
replicas: 1
selector:
Expand Down
1 change: 1 addition & 0 deletions helm/reana/templates/reana-workflow-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ kind: Deployment
metadata:
name: {{ include "reana.prefix" . }}-workflow-controller
namespace: {{ .Release.Namespace }}
{{- include "reana_sytem_infrastructure_annotations" . }}
spec:
replicas: 1
selector:
Expand Down
2 changes: 2 additions & 0 deletions helm/reana/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ apiVersion: v1
kind: Namespace
metadata:
name: {{ .Values.default_runtime_namespace }}
{{- if .Values.dedicated_nodes }}
annotations:
scheduler.alpha.kubernetes.io/node-selector: reana-system=runtime
{{- end }}
---
apiVersion: v1
kind: ServiceAccount
Expand Down
Loading

0 comments on commit 4bd83a5

Please sign in to comment.