Skip to content

Commit

Permalink
feat(helm): add topologySpreadConstraint (#3538)
Browse files Browse the repository at this point in the history
  • Loading branch information
joke committed Sep 7, 2024
1 parent e08ff84 commit 2498e95
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions operations/pyroscope/helm/pyroscope/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
| pyroscope.structuredConfig | object | `{}` | Allows to override Phlare's configuration using structured format. |
| pyroscope.tenantOverrides | object | `{}` | Allows to add tenant specific overrides to the default limit configuration. |
| pyroscope.tolerations | list | `[]` | |
| pyroscope.topologySpreadConstraints | list | `[]` | Topology Spread Constraints |
| serviceMonitor.annotations | object | `{}` | ServiceMonitor annotations |
| serviceMonitor.enabled | bool | `false` | If enabled, ServiceMonitor resources for Prometheus Operator are created |
| serviceMonitor.interval | string | `nil` | ServiceMonitor scrape interval |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ spec:
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with $values.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with $values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions operations/pyroscope/helm/pyroscope/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ pyroscope:

nodeSelector: {}

# -- Topology Spread Constraints
topologySpreadConstraints: [ ]

Check failure on line 114 in operations/pyroscope/helm/pyroscope/values.yaml

View workflow job for this annotation

GitHub Actions / call-lint-test / lint-test

[brackets] too many spaces inside empty brackets

## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
## If you set enabled as "True", you need :
## - create a pv which above 10Gi and has same namespace with phlare
Expand Down

0 comments on commit 2498e95

Please sign in to comment.