Skip to content

Instantly share code, notes, and snippets.

@sergioprates
Created August 28, 2021 19:17
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