-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathdatadog-metric-np.yaml
27 lines (26 loc) · 977 Bytes
/
datadog-metric-np.yaml
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
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
name: allow-same-namespace
namespace: default
spec:
podSelector:
matchLabels:
app.kubernetes.io/name: kube-state-metrics
policyTypes:
- Ingress
ingress:
- from:
- namespaceSelector:
matchLabels:
ns: default
ports:
- protocol: TCP
port: 8080
- from:
- namespaceSelector:
matchLabels:
ns: kube-system
ports:
- protocol: TCP
port: 8080