Skip to content

Commit

Permalink
doc: Add instructions to remove previous applied network policy.
Browse files Browse the repository at this point in the history
Fixes: cilium#2724

Signed-off-by: SimonB <simonb@kaizo.org>
  • Loading branch information
SimonB committed Jul 24, 2024
1 parent 2b40f93 commit 63e6841
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/content/en/docs/getting-started/enforcement.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,12 @@ export SERVICECIDR=$(kubectl describe pod -n kube-system kube-apiserver-kind-con
{{< /tab >}}
{{< /tabpane >}}

Then we can apply the egress cluster enforcement policy
If you have previously applied the network policy in the last section, first remove it:
```shell
envsubst < network_egress_cluster.yaml | kubectl delete -f -
```

Then we can apply the egress cluster enforcement policy:

```shell
wget https://raw.githubusercontent.com/cilium/tetragon/main/examples/quickstart/network_egress_cluster_enforce.yaml
Expand Down

0 comments on commit 63e6841

Please sign in to comment.