One peer or two

Predict the outcome

Difficulty 2 of 3Not solved yet

This policy was meant to admit only the Prometheus pods in the monitoring namespace. With it applied in payments, which pods can open connections to the checkout pods?

Your first answer is the one that counts. After a miss you can try again, or ask for the answer.

apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: checkout-from-prometheus
namespace: payments
spec:
podSelector:
matchLabels:
app.kubernetes.io/name: checkout
policyTypes:
- Ingress
ingress:
- from:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: monitoring
- podSelector:
matchLabels:
app.kubernetes.io/name: prometheus
Your prediction