Draft: Auto add baremetal hosts to snmp monitoring
This MR adds a kyverno policy that adds the needed information for bmh monitoring based on a label and annotations added to the baremetal hosts:
baremetal_hosts:
server1:
bmh_metadata:
labels:
snmp-enabled: "true"
annotations:
sylva.org/snmp-auth: dell1
sylva.org/snmp-hw-type: dell
sylva.org/snmp-endpoint: http://192.168.133.1:5432
the resulting configmap containing:
apiVersion: v1
data:
snmp_management-cluster-management-cluster-server1.yaml: |
- targets: ['http://192.168.133.1:5432']
labels:
auth: 'dell1'
module: 'dell'
alias: 'server1'
sylva_cluster: 'management-cluster'
Related to !1888 (merged) and completed by sylva-projects/sylva-elements/helm-charts/sylva-capi-cluster!304 (merged) Closes: #532 (closed)