Update declare-network-policy.md
Fix the format. The format in orginal web page is confusion.
This commit is contained in:
@@ -86,6 +86,7 @@ spec:
|
||||
## Assign the policy to the service
|
||||
|
||||
Use kubectl to create a NetworkPolicy from the above nginx-policy.yaml file:
|
||||
|
||||
```console
|
||||
$ kubectl create -f nginx-policy.yaml
|
||||
networkpolicy "access-nginx" created
|
||||
|
||||
Reference in New Issue
Block a user