Skip to content

Commit 574c5bb

Browse files
committed
Document how to view network policies
1 parent 2c63548 commit 574c5bb

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

charts/calico-configuration/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,16 @@ if calico version <= 3.29
3030
## Known issues
3131

3232
If network policy is created after pod, pod **MUST** be restarted for policy to take effect. Read more https://github.com/projectcalico/calico/issues/10753#issuecomment-3140717418
33+
34+
## How to view existing policies
35+
36+
via kubectl:
37+
* `kubectl get networkpolicies.crd.projectcalico.org -n adminer`
38+
* `kubectl describe networkpolicies.crd.projectcalico.org -n adminer default.adminer-network-policy`
39+
40+
via calicoctl:
41+
* `calicoctl get networkpolicy -n adminer -o yaml`
42+
43+
Note:
44+
* global network policies and network policies are separate resources for calico
45+
* To see all resources execute `kubectl get crd | grep calico` or `calicoctl get --help`

0 commit comments

Comments
 (0)