Skip to content

KennyChenFight/OPA-Gatekeeper-Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OPA-Gatekeeper-Demo

These are basic rego rules for demo.
There are more useful rules from opa official: https://github.com/open-policy-agent/gatekeeper-library

Requirements

Rules

  1. denyallpod: deny any pods creation
  2. image: accept specific container registry when pod creation
  3. label: accept specific label when namespace creation
  4. pod-security-context: deny root privileged container when pod creation

Run

  • use kubectl apply -f xxx-rule.yaml
  • use kubectl apply -f xxx-invalid.yaml to test rules.

About

Integrate OPA-Gatekeeper with Kubernetes to demo powerful rego rules.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published