Skip to content

Commit

Permalink
sync the contents of README and metadata.usage
Browse files Browse the repository at this point in the history
Ensure the usage section of metadata.yml is equal to the contents of
README.md

Signed-off-by: Flavio Castelli <[email protected]>
  • Loading branch information
flavio committed Jan 19, 2023
1 parent c91b6ff commit b46cfa0
Showing 1 changed file with 0 additions and 40 deletions.
40 changes: 0 additions & 40 deletions metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,46 +19,6 @@ annotations:
This policy is used to control users and groups in containers.
## Installation
Once you have Kuberwarden installed in you Kubernetes cluster, you can install
the policy with the following command:
```bash
kubectl apply -f - <<EOF
apiVersion: policies.kubewarden.io/v1alpha2
kind: ClusterAdmissionPolicy
metadata:
name: user-group-psp
spec:
policyServer: default
module: registry://ghcr.io/kubewarden/policies/user-group-psp:latest
rules:
- apiGroups: [""]
apiVersions: ["v1"]
resources: ["pods"]
operations:
- CREATE
- UPDATE
mutating: true
settings:
run_as_user:
rule: "MustRunAs"
overwrite: false
ranges:
- min: 1000
max: 2000
- min: 4000
max: 5000
run_as_group:
rule: "RunAsAny"
supplemental_groups:
rule: "RunAsAny"
EOF
```
You can see more information about the setting in the following section.
## Settings
Expand Down

0 comments on commit b46cfa0

Please sign in to comment.