Skip to content

Instantly share code, notes, and snippets.

@jkeam
Created October 7, 2025 04:06
Show Gist options
  • Save jkeam/aa43b43921b76c51495e9364b271e511 to your computer and use it in GitHub Desktop.
Save jkeam/aa43b43921b76c51495e9364b271e511 to your computer and use it in GitHub Desktop.
Test Deny Network Policy
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
name: test-deny
spec:
podSelector:
matchLabels:
kubevirt.io/domain: fedora01
ingress:
- from:
- podSelector:
matchLabels:
kubevirt.io/domain: fedora02
policyTypes:
- Ingress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment