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

Advanced AI Prompt for Zero-Trust Kubernetes NetworkPolicies

Customize the variables below to instantly engineer your prompt.

Required Variables

k8s-zero-trust-network-policy-generator.txt
Act as a DevSecOps specialist. Design a set of Kubernetes NetworkPolicies for the '[NAMESPACE]' namespace. First, implement a default-deny-all ingress and egress policy. Second, create a specific policy for pods labeled 'app=[APP_LABEL]' to allow egress only to a specific CIDR '[ALLOWED_CIDR]' and ingress only from the 'frontend' tier on port '[DB_PORT]'. Use labels strictly to define microservice boundaries.

Example Text Output

"The AI will provide two NetworkPolicy YAMLs: one to lock down the namespace and another to allow specific, granular traffic based on your microservice labels."

More Cloud & DevOps Prompts

View all →

Frequently Asked Questions

What is the "Advanced AI Prompt for Zero-Trust Kubernetes NetworkPolicies" prompt used for?

The AI will provide two NetworkPolicy YAMLs: one to lock down the namespace and another to allow specific, granular traffic based on your microservice labels.

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.