-
Notifications
You must be signed in to change notification settings - Fork 328
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vmanomaly: added extra volumes, extra volumesMounts, PDB and PodMonit…
…or (#1320) * vmanomaly: added PDB and PodMonitor * added extravolumes and extravolumemounts * bump version
- Loading branch information
1 parent
0c6c3a5
commit e6f2435
Showing
10 changed files
with
92 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{{- if .Values.podDisruptionBudget.enabled }} | ||
apiVersion: policy/v1 | ||
kind: PodDisruptionBudget | ||
metadata: | ||
name: {{ template "chart.fullname" . }} | ||
namespace: {{ .Release.Namespace }} | ||
{{- $ctx := merge (deepCopy .) (dict "extraLabels" .Values.podDisruptionBudget.extraLabels) }} | ||
labels: {{ include "chart.labels" $ctx | nindent 4 }} | ||
spec: | ||
{{- with .Values.podDisruptionBudget.minAvailable }} | ||
minAvailable: {{ . }} | ||
{{- end }} | ||
{{- with .Values.podDisruptionBudget.maxUnavailable }} | ||
maxUnavailable: {{ . }} | ||
{{- end }} | ||
selector: | ||
matchLabels: {{ include "chart.selectorLabels" . | nindent 6 }} | ||
{{- end }} |
44 changes: 44 additions & 0 deletions
44
charts/victoria-metrics-anomaly/templates/pod-monitor.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{{- if .Values.podMonitor.enabled -}} | ||
{{- $podMonitor := .Values.podMonitor -}} | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PodMonitor | ||
metadata: | ||
{{- with $podMonitor.annotations }} | ||
annotations: {{ toYaml . | nindent 4 }} | ||
{{- end }} | ||
{{- $ctx := merge (deepCopy .) (dict "extraLabels" $podMonitor.extraLabels) }} | ||
labels: {{ include "chart.labels" $ctx | nindent 4 }} | ||
name: {{ template "chart.fullname" . }} | ||
{{- with $podMonitor.namespace }} | ||
namespace: {{ . }} | ||
{{- end }} | ||
spec: | ||
namespaceSelector: | ||
matchNames: | ||
- {{ .Release.Namespace }} | ||
selector: | ||
matchLabels: {{ include "chart.selectorLabels" . | nindent 6 }} | ||
podMetricsEndpoints: | ||
- port: metrics | ||
{{- with $podMonitor.basicAuth }} | ||
basicAuth: {{ toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- with $podMonitor.scheme }} | ||
scheme: {{ . }} | ||
{{- end }} | ||
{{- with $podMonitor.interval }} | ||
interval: {{ . }} | ||
{{- end }} | ||
{{- with $podMonitor.scrapeTimeout }} | ||
scrapeTimeout: {{ . }} | ||
{{- end }} | ||
{{- with $podMonitor.tlsConfig }} | ||
tlsConfig: {{ toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- with $podMonitor.relabelings }} | ||
relabelings: {{ toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- with $podMonitor.metricRelabelings }} | ||
metricRelabelings: {{ toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
podMonitor: | ||
enabled: true | ||
podDisruptionBudget: | ||
enabled: true | ||
eula: true | ||
config: | ||
schedulers: | ||
|