Files
kubernetes/restic-exporter/network-policy.yaml
Dustin C. Hatch 5079599423 restic-exporter: Deploy Restic Prometheus exporter
The [restic-exporter][0] exposes metrics about Restic snapshots as
Prometheus metrics.  This allows us to get similar data as we have for
BURP backups.  Chiefly important among the metrics are last backup time
and size, which we can use to determine if backups are working
correctly.

[0]: https://github.com/ngosang/restic-exporter
2024-06-26 18:29:49 -05:00

40 lines
859 B
YAML

apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: restic-exporter
labels:
app.kubernetes.io/name: restic-exporter
app.kubernetes.io/component: restic-exporter
spec:
egress:
- to:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: kube-system
podSelector:
matchLabels:
k8s-app: kube-dns
ports:
- port: 53
protocol: UDP
- port: 53
protocol: TCP
- to:
- ipBlock:
cidr: 172.30.0.30/32
ports:
- port: 9000
ingress:
- from:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: victoria-metrics
podSelector:
matchLabels:
app.kubernetes.io/name: vmagent
ports:
- port: metrics
podSelector:
matchLabels:
app.kubernetes.io/component: restic-exporter