40 lines
859 B
YAML
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
|