diff --git a/slides/autopilot/autotest.py b/slides/autopilot/autotest.py index 9a85ed1e..760de79c 100755 --- a/slides/autopilot/autotest.py +++ b/slides/autopilot/autotest.py @@ -223,7 +223,7 @@ def check_exit_status(): def setup_tmux_and_ssh(): if subprocess.call(["tmux", "has-session"]): logging.error("Couldn't connect to tmux. Please setup tmux first.") - ipaddr = open("../../prepare-vms/ips.txt").read().split("\n")[0] + ipaddr = "$IPADDR" uid = os.getuid() raise Exception(""" diff --git a/slides/k8s/netpol.md b/slides/k8s/netpol.md index 54c8f0a8..2bae8155 100644 --- a/slides/k8s/netpol.md +++ b/slides/k8s/netpol.md @@ -371,6 +371,23 @@ troubleshoot easily, without having to poke holes in our firewall. --- +## Cleaning up our network policies + +- The network policies that we have installed block all traffic to the default namespace + +- We should remove them, otherwise further exercises will fail! + +.exercise[ + +- Remove all network policies: + ```bash + kubectl delete networkpolicies --all + ``` + +] + +--- + ## Protecting the control plane - Should we add network policies to block unauthorized access to the control plane?