32 lines
777 B
YAML
32 lines
777 B
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: NetworkPolicy
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/component: controller
|
|
app.kubernetes.io/name: prometheus-operator
|
|
app.kubernetes.io/part-of: kube-prometheus
|
|
app.kubernetes.io/version: 0.67.1
|
|
name: prometheus-operator
|
|
namespace: monitoring
|
|
annotations:
|
|
argocd.argoproj.io/sync-wave: '1'
|
|
spec:
|
|
egress:
|
|
- {}
|
|
ingress:
|
|
- from:
|
|
- podSelector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: prometheus
|
|
ports:
|
|
- port: 8443
|
|
protocol: TCP
|
|
podSelector:
|
|
matchLabels:
|
|
app.kubernetes.io/component: controller
|
|
app.kubernetes.io/name: prometheus-operator
|
|
app.kubernetes.io/part-of: kube-prometheus
|
|
policyTypes:
|
|
- Egress
|
|
- Ingress
|