P
đź’»DeveloppementIntermediateAll AIs

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

Answer 3 questions and Léa tailors the prompt to your situation.

Use Cases

Secure Kubernetes networking

Improve this prompt

Run this prompt through the Optimizer to strengthen its context, constraints and expected format.

Improve this prompt with the Optimizer

Comments

  • 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

đź’»DeveloppementIntermediateAll AIs

GitHub Copilot Prompt to Generate a Database Schema

GitHub Copilot radically transforms how developers design their databases. Instead of starting from a blank sheet and manually writing each CREATE TABLE statement, you can now describe your business domain in natural language and get a complete schema in seconds. The tool excels particularly in generating relational schemas with appropriate primary keys, foreign keys, indexes, and constraints. Whether you work with PostgreSQL, MySQL, SQLite, or SQL Server, Copilot adapts the syntax and data types to the targeted SQL dialect. This approach significantly accelerates the modeling phase, reduces syntax errors, and allows you to focus on business logic rather than SQL mechanics. A well-crafted prompt is key: by specifying the application context, entity relationships, and business constraints, you get a production-ready schema that follows best practices for normalization and performance.

089
đź’»DeveloppementBeginnerAll AIs

Implement OWASP security headers

Add security headers

0101
đź’»DeveloppementIntermediateAll AIs

Implement secrets management

Secure credentials management

0111
đź’»DeveloppementIntermediateAll AIs

Multi-Level Testing Pipeline

Structuring tests in the pipeline

086