Skip to content

Instantly share code, notes, and snippets.

@sergioprates
Created August 28, 2021 19:17
Show Gist options
  • Save sergioprates/d7a21787dd03cccf80a120aefffd3bb8 to your computer and use it in GitHub Desktop.
Save sergioprates/d7a21787dd03cccf80a120aefffd3bb8 to your computer and use it in GitHub Desktop.
politica-gatekeeper.yaml
apiVersion: constraints.gatekeeper.sh/v1beta1
kind: K8sPSPAllowedUsers
metadata:
name: pods-sem-root
namespace: teste-policy
spec:
match:
kinds:
- apiGroups: [""]
kinds: ["Pod"]
parameters:
runAsUser:
rule: MustRunAsNonRoot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment