Skip to content

Commit

Permalink
conditionally install podmonitor
Browse files Browse the repository at this point in the history
  • Loading branch information
fridayy committed Jan 24, 2023
1 parent 325200b commit fa3daee
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 0 additions & 1 deletion charts/aks-node-termination-handler/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
| | |
_` | | / __| __ \ __| __ \
( | < \__ \ | | | | | |
\__,_| _|\_\ ____/ _| _| \__| _| |_|
Expand Down
2 changes: 2 additions & 0 deletions charts/aks-node-termination-handler/templates/podmonitor.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.podMonitor.enabled -}}
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
Expand All @@ -24,3 +25,4 @@ spec:
selector:
matchLabels:
{{- include "aks-node-termination-handler.selectorLabels" . | nindent 8 }}
{{- end -}}
5 changes: 5 additions & 0 deletions charts/aks-node-termination-handler/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ nodeSelector:

affinity: { }

podMonitor:
enabled: false
interval: "15s"
labels: {}

# attributions to the guys at https://github.com/aws/aws-node-termination-handler
# webhookURL if specified, posts event data to URL upon instance interruption action.
webhook:
Expand Down

0 comments on commit fa3daee

Please sign in to comment.