30 lines
651 B
YAML
30 lines
651 B
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: NetworkPolicy
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/component: grafana
|
|
app.kubernetes.io/name: grafana
|
|
app.kubernetes.io/part-of: kube-prometheus
|
|
app.kubernetes.io/version: 8.4.6
|
|
name: grafana
|
|
namespace: monitoring
|
|
spec:
|
|
egress:
|
|
- {}
|
|
ingress:
|
|
- from:
|
|
- podSelector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: prometheus
|
|
ports:
|
|
- port: 3000
|
|
protocol: TCP
|
|
podSelector:
|
|
matchLabels:
|
|
app.kubernetes.io/component: grafana
|
|
app.kubernetes.io/name: grafana
|
|
app.kubernetes.io/part-of: kube-prometheus
|
|
policyTypes:
|
|
- Egress
|
|
- Ingress
|