- Applying Pod Security Policies using Gatekeeper: https://cloud.google.com/kubernetes-engine/docs/how-to/pod-security-policies-with-gatekeeper
- Deploying Gatekeeper from Marketplace: https://cloud.google.com/kubernetes-engine/docs/how-to/deploying-marketplace-app#console
- Gatekeeper official doc: https://open-policy-agent.github.io/gatekeeper/website/docs/howto
- Create the constraint
kubectl apply -f https://raw.githubusercontent.com/caiottavares/gatekeeper/main/allowedRepos/constraint.yaml
- Create the template
kubectl apply -f https://raw.githubusercontent.com/caiottavares/gatekeeper/main/allowedRepos/template.yaml