Advertisement
sandervanvugt

network policy demo march21

Mar 17th, 2021
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. ###### nwpolicy demo on external machine (works only with decent network plugin ######
  2. ###### FAILS ON MINIKUBE ########
  3. 10 git clone https://github.com/sandervanvugt/cka
  4. 11 vim nwpolicy-complete-example.yaml
  5. 12 kubectl get svc
  6. 13 kubectl exec -it busybox -- wget --spider --timeout=1 nginx
  7. 14 kubectl get pods --show-labels
  8. 15 kubectl label pod busybox access=true
  9. 16 kubectl exec -it busybox -- wget --spider --timeout=1 nginx
  10. 17 history
  11.  
  12. ######
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement