Skip to content

Commit 2e677cc

Browse files
authored
feat(helm): add topologySpreadConstraint (#3538) (#3539)
1 parent 96321e9 commit 2e677cc

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

operations/pyroscope/helm/pyroscope/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
| pyroscope.structuredConfig | object | `{}` | Allows to override Phlare's configuration using structured format. |
7373
| pyroscope.tenantOverrides | object | `{}` | Allows to add tenant specific overrides to the default limit configuration. |
7474
| pyroscope.tolerations | list | `[]` | |
75+
| pyroscope.topologySpreadConstraints | list | `[]` | Topology Spread Constraints |
7576
| serviceMonitor.annotations | object | `{}` | ServiceMonitor annotations |
7677
| serviceMonitor.enabled | bool | `false` | If enabled, ServiceMonitor resources for Prometheus Operator are created |
7778
| serviceMonitor.interval | string | `nil` | ServiceMonitor scrape interval |

operations/pyroscope/helm/pyroscope/templates/deployments-statefulsets.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@ spec:
129129
nodeSelector:
130130
{{- toYaml . | nindent 8 }}
131131
{{- end }}
132+
{{- with $values.topologySpreadConstraints }}
133+
topologySpreadConstraints:
134+
{{- toYaml . | nindent 8 }}
135+
{{- end }}
132136
{{- with $values.affinity }}
133137
affinity:
134138
{{- toYaml . | nindent 8 }}

operations/pyroscope/helm/pyroscope/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ pyroscope:
110110

111111
nodeSelector: {}
112112

113+
# -- Topology Spread Constraints
114+
topologySpreadConstraints: []
115+
113116
## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
114117
## If you set enabled as "True", you need :
115118
## - create a pv which above 10Gi and has same namespace with phlare

operations/pyroscope/jsonnet/values.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@
152152
},
153153
"structuredConfig": {},
154154
"tenantOverrides": {},
155-
"tolerations": []
155+
"tolerations": [],
156+
"topologySpreadConstraints": []
156157
},
157158
"serviceMonitor": {
158159
"annotations": {},

0 commit comments

Comments
 (0)