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

Add the Topologyspreadconstraints to deployments in Helm Chart #875

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ spec:
{{- if .Values.imageAgg.usePullSecret }}
imagePullSecrets:
- name: {{ .Values.imageAgg.pullsecretName}}
{{- end }}
{{- with .Values.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: splunk-fluentd-k8s-metrics-agg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,18 @@ priorityClassNameAgg:
# Defines node affinity to restrict pod deployment.
affinity: {}

# Defines topologySpreadConstraints to restrict pod deployment.
topologySpreadConstraints: []
#- maxSkew: 1
# topologyKey: topology.kubernetes.io/zone
# whenUnsatisfiable: DoNotSchedule
# labelSelector:
# matchExpressions:
# - key: component
# operator: In
# values:
# - aggregator

# = Kubernetes Connection Configs =
kubernetes:
# The hostname or IP address that kubelet will use to connect to. If not supplied, status.hostIP of the node is used to fetch metrics from the Kubelet API (via the $KUBERNETES_NODE_IP environment variable).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ spec:
imagePullSecrets:
- name: {{ .Values.image.pullSecretName }}
{{ end }}
{{- with .Values.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: splunk-fluentd-k8s-objects
image: {{ template "splunk-kubernetes-objects.image" . }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,18 @@ tolerations: []
# Defines node affinity to restrict pod deployment.
affinity: {}

# Defines topologySpreadConstraints to restrict pod deployment.
topologySpreadConstraints: []
#- maxSkew: 1
# topologyKey: topology.kubernetes.io/zone
# whenUnsatisfiable: DoNotSchedule
# labelSelector:
# matchExpressions:
# - key: app
# operator: In
# values:
# - splunk-kubernetes-objects

# `customFilters` defines the custom filters to be used.
# This section can be used to define custom filters using plugins like https://github.com/splunk/fluent-plugin-jq
# Its also possible to use other filters like https://www.fluentd.org/plugins#filter
Expand Down