Skip to content

Commit

Permalink
Update content/en/docs/reference/access-authn-authz/validating-admiss…
Browse files Browse the repository at this point in the history
…ion-policy.md

Co-authored-by: Qiming Teng <[email protected]>
  • Loading branch information
jiahuif and tengqm authored Apr 3, 2023
1 parent d396aa0 commit 930632c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,8 @@ we can have the following validation:

{{< codenew file="access/deployment-replicas-policy.yaml" >}}

After creating a params object that limits the replicas to 3 and setting up the binding, when we try to create a deployment with 5 replicas,
we will receive the following message.
After creating a params object that limits the replicas to 3 and setting up the binding,
when we try to create a deployment with 5 replicas, we will receive the following message.
```
$ kubectl create deploy --image=nginx nginx --replicas=5
error: failed to create deployment: deployments.apps "nginx" is forbidden: ValidatingAdmissionPolicy 'deploy-replica-policy.example.com' with binding 'demo-binding-test.example.com' denied request: object.spec.replicas must be no greater than 3
Expand Down

0 comments on commit 930632c

Please sign in to comment.