Add prometheus rules for longhorn
This commit is contained in:
parent
4f3d362e8e
commit
fc7765b5d4
2 changed files with 100 additions and 0 deletions
|
|
@ -72,6 +72,16 @@
|
|||
csi.storage.k8s.io/fsType: ext4
|
||||
recurringJobSelector: '[{"name":"snapshot","isGroup":true}, {"name":"backup-daily","isGroup":true}]'
|
||||
|
||||
- name: Install Prometheus rules
|
||||
kubernetes.core.k8s:
|
||||
state: "present"
|
||||
context: "{{ my_context }}"
|
||||
namespace: "{{ storage_longhorn_namespace }}"
|
||||
apply: yes
|
||||
resource_definition: "{{ lookup('file', 'longhorn/' + item) | from_yaml_all }}"
|
||||
with_items:
|
||||
- longhorn_prometheusRules.yml
|
||||
|
||||
when:
|
||||
- storage_longhorn_enabled
|
||||
tags:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue