# M8.5: the region's operations port accepts connections only from the AEvolution # Prometheus. Kubelet probes come from the node and are not affected (Calico). apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: evo-region-scrape spec: podSelector: matchLabels: app.kubernetes.io/name: evo-region policyTypes: [Ingress] ingress: - from: - namespaceSelector: matchLabels: kubernetes.io/metadata.name: aevolution-monitoring podSelector: matchLabels: app.kubernetes.io/name: prometheus ports: - {protocol: TCP, port: 9100}