Skip to content

Commit

Permalink
Merge pull request #41 from alchemy-fr/PHRAS-3912_nodeSelector
Browse files Browse the repository at this point in the history
PHRAS-3912 nodeSelector db, elasticsearch, gateway, saml, redis session
  • Loading branch information
nmaillat authored Jul 25, 2024
2 parents c4f6c0a + 2c5b630 commit b3b8faa
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/phraseanet/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 0.43.0
version: 0.44.0


# This is the version number of the application being deployed. This version number should be
Expand Down
3 changes: 3 additions & 0 deletions charts/phraseanet/templates/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ spec:
app: phraseanet
tier: db
spec:
{{- if .Values.nodeSelector }}
nodeSelector: {{ toYaml .Values.nodeSelector | nindent 8 }}
{{- end }}
volumes:
- name: database
persistentVolumeClaim:
Expand Down
3 changes: 3 additions & 0 deletions charts/phraseanet/templates/elasticsearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ spec:
app: phraseanet
tier: elasticsearch
spec:
{{- if .Values.nodeSelector }}
nodeSelector: {{ toYaml .Values.nodeSelector | nindent 8 }}
{{- end }}
volumes:
- name: elastic-data
persistentVolumeClaim:
Expand Down
3 changes: 3 additions & 0 deletions charts/phraseanet/templates/gateway.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ spec:
app: phraseanet
tier: gateway
spec:
{{- if .Values.nodeSelector }}
nodeSelector: {{ toYaml .Values.nodeSelector | nindent 8 }}
{{- end }}
volumes:
- name: phraseanet-datas
persistentVolumeClaim:
Expand Down
3 changes: 3 additions & 0 deletions charts/phraseanet/templates/phraseanet-saml-sp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ spec:
tier: saml-sp
{{- template "saml.annotations" . }}
spec:
{{- if .Values.nodeSelector }}
nodeSelector: {{ toYaml .Values.nodeSelector | nindent 8 }}
{{- end }}
volumes:
{{- if eq .Values.saml.saml_configmap.enabled true }}
- name: phraseanet-saml-idp-config-dir
Expand Down
3 changes: 3 additions & 0 deletions charts/phraseanet/templates/redis-session.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ spec:
app: phraseanet
tier: redis-session
spec:
{{- if .Values.nodeSelector }}
nodeSelector: {{ toYaml .Values.nodeSelector | nindent 8 }}
{{- end }}
containers:
- name: redis-session
image: redis:5.0.5
Expand Down

0 comments on commit b3b8faa

Please sign in to comment.