Update declare-network-policy.md
Fix the format. The format in orginal web page is confusion.
This commit is contained in:
parent
618c212c32
commit
9105932510
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue