refactor: reorganize kustomizations

This commit is contained in:
auricom
2021-07-28 01:57:17 +02:00
parent 30dcd7cd35
commit 1588499c9f
81 changed files with 16 additions and 38 deletions

View File

@@ -0,0 +1,20 @@
---
kind: PrometheusRule
apiVersion: monitoring.coreos.com/v1
metadata:
labels:
prometheus: k8s
role: alert-rules
name: gitopstoolkit
namespace: flux-system
spec:
groups:
- name: GitOpsToolkit
rules:
- alert: ReconciliationFailure
expr: max(gotk_reconcile_condition{status="False",type="Ready"}) by (namespace, name, kind) + on(namespace, name, kind) (max(gotk_reconcile_condition{status="Deleted"}) by (namespace, name, kind)) * 2 == 1
for: 30m
labels:
severity: page
annotations:
summary: "{{ $labels.kind }} {{ $labels.namespace }}/{{ $labels.name }} reconciliation has been failing for more than ten minutes."