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
|
## Assign the policy to the service
|
||||||
|
|
||||||
Use kubectl to create a NetworkPolicy from the above nginx-policy.yaml file:
|
Use kubectl to create a NetworkPolicy from the above nginx-policy.yaml file:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ kubectl create -f nginx-policy.yaml
|
$ kubectl create -f nginx-policy.yaml
|
||||||
networkpolicy "access-nginx" created
|
networkpolicy "access-nginx" created
|
||||||
|
|||||||
Reference in New Issue
Block a user