Blenra LogoBlenra
Optimized for: Gemini / ChatGPT / Claude
#Kubernetes

Advanced Kubernetes OPA Gatekeeper Policies

Customize the variables below to instantly engineer your prompt.

Required Variables

kubernetes-opa-gatekeeper-policies.txt
Act as a Kubernetes Governance Officer. Implement a strict policy-as-code framework across an EKS/GKE cluster utilizing the OPA (Open Policy Agent) Gatekeeper engine. Generate a comprehensive `ConstraintTemplate` and `Constraint` manifest named [POLICY_NAME]. The Rego policy logic must mathematically execute two rules: 1) Reject the creation of any Pod attempting to pull container images from sources other than the [RESTRICTED_REGISTRIES] (e.g., exclusively allowing `*.dkr.ecr.region.amazonaws.com`). 2) Deny the creation of any Deployment lacking the mandatory [REQUIRED_SECURITY_CONTEXT] (specifically enforcing `runAsNonRoot: true` and `allowPrivilegeEscalation: false`). Detail the workflow for running this policy in 'DryRun' mode first to audit existing non-compliant resources without causing catastrophic production outages.

Example Text Output

"A set of OPA Gatekeeper manifests and Rego code that physically enforces organizational security and compliance standards, preventing developers from deploying insecure containers."

More Cloud & DevOps Prompts

View all →

Frequently Asked Questions

What is the "Advanced Kubernetes OPA Gatekeeper Policies" prompt used for?

A set of OPA Gatekeeper manifests and Rego code that physically enforces organizational security and compliance standards, preventing developers from deploying insecure containers.

Which AI tools work with this prompt?

This prompt is optimized for Gemini / ChatGPT / Claude, but works great with ChatGPT, Claude, Gemini, and other large language models. Simply copy it and paste it into your preferred AI tool.

How do I customize this prompt?

Use the variable fields above to fill in your specific details. The prompt will auto-update as you type, ready to copy instantly.

Is this prompt free?

Yes! All prompts on Blenra are free to copy and use immediately. No account required.