Signed-off-by: paulfantom <pawel@krupa.net.pl>
Signed-off-by: Paweł Krupa (paulfantom) <pawel@krupa.net.pl>
(cherry picked from commit d3ea3147a8)
(cherry picked from commit d24c347b2742d9474c8f441f2831262c63b8c79b)
32 lines
722 B
YAML
32 lines
722 B
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: NetworkPolicy
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/component: exporter
|
|
app.kubernetes.io/name: blackbox-exporter
|
|
app.kubernetes.io/part-of: kube-prometheus
|
|
app.kubernetes.io/version: 0.19.0
|
|
name: blackbox-exporter
|
|
namespace: monitoring
|
|
spec:
|
|
egress:
|
|
- {}
|
|
ingress:
|
|
- from:
|
|
- podSelector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: prometheus
|
|
ports:
|
|
- port: 9115
|
|
protocol: TCP
|
|
- port: 19115
|
|
protocol: TCP
|
|
podSelector:
|
|
matchLabels:
|
|
app.kubernetes.io/component: exporter
|
|
app.kubernetes.io/name: blackbox-exporter
|
|
app.kubernetes.io/part-of: kube-prometheus
|
|
policyTypes:
|
|
- Egress
|
|
- Ingress
|