-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #106 from gfsuse/main
docs for NVSHAS-8325, Namespace Boundary Enforcement(NBE)
- Loading branch information
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
docs/05.policy/14.namespaceboundary/14.namespaceboundary.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
title: Namespace Boundary Enforcement | ||
taxonomy: | ||
category: docs | ||
slug: /policy/namespaceboundary | ||
--- | ||
|
||
### Policy: Namespace Boundary Enforcement | ||
|
||
Customer made request to policy ingress/egress traffic on namespace’s natural boundary. | ||
eg.) | ||
There are 2 namespaces ns1, ns2, | ||
in ns1 there are pod1 and pod2, | ||
in ns2 there are pod3 and pod4 | ||
g1 is created using "label=app1" which includes pod1 and pod3 | ||
g2 is created using "label=app2" which includes pod2 and pod4 | ||
network policy: from g1 to g2 app HTTPS port any action allow | ||
with namespace boundary enforcement only pod1 can talk to pod2 but not pod1 to pod4, pod3 to pod4 but not pod3 to pod2, it saves user from creating additional rules to realize this restriction. | ||
|
||
<strong>Use label to enable/disable namespace boundary enforcement</strong> | ||
|
||
+ **Add label to enable NBE** | ||
> kubectl label namespace <namespace> NeuvectorNamespaceBoundary=enabled | ||
+ **Remove or change label to disable NBE** | ||
> kubectl label namespace <namespace> NeuvectorNamespaceBoundary- | ||
or | ||
kubectl label namespace <namespace> NeuvectorNamespaceBoundary=disabled |