blob: 8665861d3888aea10f738fd2df60b484a6de7c7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-logstash-and-grafana-to-elasticsearch
namespace: monitoring
spec:
podSelector:
matchLabels:
app.kubernetes.io/name: elasticsearch
policyTypes:
- Ingress
ingress:
- from:
- podSelector:
matchLabels:
app.kubernetes.io/name: logstash
ports:
- protocol: TCP
port: 9200
- from:
- podSelector:
matchLabels:
app.kubernetes.io/name: grafana
ports:
- protocol: TCP
port: 9200
|