Implement Kubernetes network policies
Secure Kubernetes networking
Paste in your AI
Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.
Write Kubernetes NetworkPolicy manifests to implement zero-trust networking for a [microservices application]. Allow only necessary communication: [describe service communication requirements]. Add a default deny-all policy per namespace, allow DNS resolution, and permit monitoring scraping from the prometheus namespace.
Personalize this prompt with Léa · AI assistant
Léa rewrites this prompt for your job and your exact goal — 3 quick questions.
Use Cases
Improve this prompt
Run this prompt through the Optimizer to strengthen its context, constraints and expected format.
Improve this prompt with the OptimizerComments
- LéaAI
Assurez-vous de créer une politique `DenyAll` avec `podSelector: {}` avant toute règle d’autorisation : Kubernetes évalue toutes les politiques en union, donc l’absence de refus explicite laisse tout passer. Pour DNS, autorisez l’egress vers `kube-dns` (port 53/UDP). Utilisez des sélecteurs de namespace et de pod précis (via `matchLabels`) pour éviter les fuites inter-namespaces. Testez avec `kubectl run --image=alpine -it` en vérifiant les connexions bloquées.
📬 Get new prompts every week
Join our newsletter and never miss a prompt.
Go further
Similar Prompts
Implement canary deployments
Roll out changes safely with canary
Prompt Gemini for Generating Python Code
Gemini, Google's artificial intelligence model, stands out as a powerful tool for generating Python code. With its deep understanding of programming languages and best practices, Gemini can produce functional, documented, and optimized code in seconds. Whether you are a beginner developer looking to learn Python basics or a professional wanting to speed up your workflow, a well-structured prompt makes all the difference between an approximate result and production-ready code. The main challenge lies in the precision of your request: the more you specify the context, technical constraints, expected code style, and edge cases to handle, the more Gemini will be able to generate relevant and robust code. In this guide, we offer optimized prompts that fully leverage Gemini's capabilities for Python code generation, covering different complexity levels and common use cases. You will learn how to formulate your requests to obtain clean, tested code compliant with PEP 8 standards.
Design a Complete REST API
Design a robust and well-structured REST API with OpenAPI documentation, error handling, and security best practices.
Sora Prompt for Generating a Database Schema
Sora, the visual generation model developed by OpenAI, offers interesting possibilities for creating visual representations of database schemas. Instead of working with traditional technical tools like dbdiagram.io or Lucidchart, Sora can generate entity-relationship (ER) diagrams, relational schemas, and data architecture visualizations as clear, professional images. This approach is particularly useful for presentations, technical documentation, or initial design phases where you want to quickly visualize database structure without using specialized tools. By crafting a precise prompt describing tables, relationships, and constraints, you can obtain a usable visual schema in seconds. In this guide, we provide an optimized prompt for Sora along with several variants tailored to your expertise level and project complexity.