Merge branch 'cleanup-after-netpol' into k8s2d

This commit is contained in:
Jerome Petazzoni
2018-09-29 20:40:31 -05:00
2 changed files with 18 additions and 1 deletions

View File

@@ -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("""

View File

@@ -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?