From 63e6841277f0df27e7d0afbaf64399e587ef4689 Mon Sep 17 00:00:00 2001 From: SimonB Date: Wed, 24 Jul 2024 09:11:47 +0100 Subject: [PATCH] doc: Add instructions to remove previous applied network policy. Fixes: https://github.com/cilium/tetragon/issues/2724 Signed-off-by: SimonB --- docs/content/en/docs/getting-started/enforcement.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/content/en/docs/getting-started/enforcement.md b/docs/content/en/docs/getting-started/enforcement.md index 113d0864fb7..b8f08218782 100644 --- a/docs/content/en/docs/getting-started/enforcement.md +++ b/docs/content/en/docs/getting-started/enforcement.md @@ -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