Typically, the user-clusters created by KKP will not have any alerts defined even wheen we enable user-cluster Monitoring components.
This folder contains useful alerts that we can deploy in user-cluster. You can choose alerts relevant to you and deploy them your user-clusters.
- ArgoCD related alerts
- Additional Node Exporter rules
- Rules to detect stuck Machine Deployments
- Rules to detect issues with Metallb pools
- Minio Operator based deployment related rules
- Misc rules to detect stuck / failed / OOMkilled pods and cronjobs.
You can deploy these AlertsRules in various ways.
You can use KKP dashboard UI for specific user-cluster to deploy the Alert Rules.
- Navigate to the right user-cluster.
- Choose the Moniotring, Logging & Alerting tab.
- Click Add Rule Group button
- Select Type as Metrics
- Paste the content of the yaml provided here.
If you are already provisioning the user-clusters via Kubermatic REST API, you can simply place the relevant alertrules-*.yaml
files along side the cluster.json
file. The provisioning script will search for all alertrules-*.yaml
files and will deploy them at given user-cluster.
You can also deploy these rules directly as a RuleGroup
CR under kubermatic.k8c.io/v1
api. For this, please consult CRD for RuleGroup to preare the spec. Spec involves base64 encoded version of the files provided here as one of the value. The CR must be deployed under appropriate cluster-xxxx namespace in appropriate seed cluster.