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