Skip to content
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
3 changes: 3 additions & 0 deletions sftpgo/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ spec:
hostNetwork: {{ .Values.hostNetwork }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
{{- if not (quote .Values.terminationGracePeriodSeconds | empty) }}
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
{{- end }}
{{- with .Values.initContainers }}
initContainers:
{{- toYaml . | nindent 8 }}
Expand Down
6 changes: 6 additions & 0 deletions sftpgo/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,12 @@ affinity: {}
# Warning: The use of host network is [discouraged](https://kubernetes.io/docs/concepts/configuration/overview/#services). Make sure to use it only when absolutely necessary.
hostNetwork: false

# -- Duration in seconds the pod needs to terminate gracefully.
# See the [API reference](https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#lifecycle) for details.
# Should be set in conjunction with SFTPGO_GRACE_TIME environment variable.
# Expected value: number of seconds (int64).
terminationGracePeriodSeconds: null

topologySpreadConstraints:
# -- Enable pod [Topology Spread Constraints](https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/).
enabled: false
Expand Down