generated from giantswarm/template-app
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
97c68f6
commit 824789f
Showing
2 changed files
with
30 additions
and
0 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
26 changes: 26 additions & 0 deletions
26
helm/prometheus-rules/templates/kaas/turtles/alerting-rules/capi-kubeadmconfig.rules.yml
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,26 @@ | ||
{{- if eq .Values.managementCluster.provider.flavor "capi" }} | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PrometheusRule | ||
metadata: | ||
labels: {{- include "labels.common" . | nindent 4}} | ||
name: capi-kubeadmconfig.rules | ||
namespace: {{.Values.namespace}} | ||
spec: | ||
groups: | ||
- name: capi-kubeadmconfig | ||
rules: | ||
- alert: KubeadmConfigDataSecretNotAvailable | ||
expr: capi_kubeadmconfig_status_condition{type="DataSecretAvailable", status="False"} > 0 | ||
for: 1h | ||
labels: | ||
area: kaas | ||
cancel_if_monitoring_agent_down: "true" | ||
cancel_if_outside_working_hours: "true" | ||
severity: page | ||
team: {{ include "providerTeam" . }} | ||
topic: managementcluster | ||
annotations: | ||
description: |- | ||
{{`KubeadmConfig {{$labels.exported_namespace}}/{{$labels.name}} in cluster {{$labels.cluster_name}} encountered errors while generating a data secret`}} | ||
opsrecipe: capi-kubeadmconfig/ | ||
{{- end }} |