layout | title | permalink | nav_order |
---|---|---|---|
page |
Network policies |
/netpol |
4 |
kubectl run -i --rm --restart=Never --image=busybox:latest -n ns1 shell -- wget -qO- http://test.ns2.svc.cluster.local
kubectl apply -f exercice-files/lab3.yaml
This demo policy has been built using a GUI available here: https://editor.networkpolicy.io/
kubectl run -i --rm --restart=Never --image=busybox:latest -n ns1 shell -- wget -qO- http://test.ns1.svc.cluster.local
kubectl run -i --rm --restart=Never --image=busybox:latest -n ns1 shell -- wget -qO- http://test.ns2.svc.cluster.local
kubectl delete -f exercice-files/lab2-1.yaml