Skip to content

Commit

Permalink
datadirsync: add tolerations support
Browse files Browse the repository at this point in the history
  • Loading branch information
edevosc2c committed Feb 17, 2025
1 parent 99d4eba commit 07e408c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions templates/datadirsync/datadirsync-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ spec:
labels:
app: {{ include "georchestra.fullname" . }}-datadirsync
spec:
nodeSelector:
"kubernetes.io/os": linux
{{- with .Values.georchestra.nodeSelector }}
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "georchestra.fullname" . }}-datadirsync-serviceaccount
securityContext:
fsGroup: 1001
Expand Down Expand Up @@ -56,4 +61,12 @@ spec:
secretName: {{ .Values.georchestra.datadir.git.ssh_secret }}
defaultMode: 0440
{{- end }}
{{- if $webapp.registry_secret }}
imagePullSecrets:
- name: {{ $webapp.registry_secret }}
{{- end }}
{{- if $webapp.tolerations }}
tolerations:
{{- $webapp.tolerations | toYaml | nindent 8 }}
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@ georchestra:
enabled: false
image: georchestra/datadirsync-k8s-agent:1.3.3
pollInterval: 30
tolerations: []
# registry_secret: default
deploymentSuffixNameList:
- geoserver

Expand Down

0 comments on commit 07e408c

Please sign in to comment.