Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
228 B
2
Indexable
# Task 2: Create NetworkPolicy that denies all ingress traffic
kubectl apply -f - <<EOF
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: deny-all-ingress
spec:
  podSelector: {}
  ingress: []
EOF