Optimized for: Gemini / ChatGPT / Claude
Advanced AI Prompt for Kubernetes RBAC Role and RoleBinding
Use this engineered prompt to drastically optimize your workflow and output.
Required Variables
- ✦
[SERVICE_ACCOUNT] - ✦
[NAMESPACE] - ✦
[API_GROUPS] - ✦
[RESOURCES] - ✦
[VERBS]
k8s-rbac-role-rolebinding-security.txt
Create a strictly scoped Kubernetes RBAC manifest. Define a Role in the '[NAMESPACE]' namespace that allows '[VERBS]' operations on '[RESOURCES]' within the '[API_GROUPS]' API group. Then, create a RoleBinding that attaches this Role to the ServiceAccount '[SERVICE_ACCOUNT]'. Follow the principle of least privilege to ensure the microservice cannot perform unauthorized cluster actions.
Example Output
"The AI will provide a Role and RoleBinding YAML set to secure a specific service account within a designated namespace."