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

Advanced AI Prompt for Kubernetes RBAC Role and RoleBinding

Customize the variables below to instantly engineer your prompt.

Required Variables

k8s-rbac-role-rolebinding-security.txt
Act as a Kubernetes Cluster Security Administrator. Engineer a strictly scoped Role-Based Access Control (RBAC) manifest configuration following the absolute Principle of Least Privilege. First, define a `Role` confined exclusively to the '[NAMESPACE]' namespace that authorizes only the specific '[VERBS]' operations (e.g., get, list, watch) executed against the '[RESOURCES]' (e.g., pods, secrets) within the designated '[API_GROUPS]'. Second, define the corresponding `RoleBinding` that cryptographically attaches this granular Role to the specific ServiceAccount '[SERVICE_ACCOUNT]'. Ensure comments detail why cluster-wide ClusterRoles were intentionally avoided to prevent lateral privilege escalation.

Example Text Output

"The AI will provide a Role and RoleBinding YAML set to secure a specific service account within a designated namespace."

More Cloud & DevOps Prompts

View all →

Frequently Asked Questions

What is the "Advanced AI Prompt for Kubernetes RBAC Role and RoleBinding" prompt used for?

The AI will provide a Role and RoleBinding YAML set to secure a specific service account within a designated namespace.

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.