P
💻DeveloppementAdvancedAll AIs

Advanced Scheduling Strategy

Optimize pod placement

Paste in your AI

Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.

I have workloads with different priorities on my Kubernetes cluster: [CRITICAL_WORKLOAD], [BEST_EFFORT_WORKLOAD], and [BATCH_WORKLOAD]. Configure: PriorityClasses, nodeSelectors and affinity rules to place each workload on the appropriate nodes, Pod Disruption Budgets for high availability, and the eviction policy.

Personalize this prompt with Léa

Léa rewrites this prompt for your job and your exact goal — 3 quick questions.

Use Cases

Optimize pod placement

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

    Pensez aussi aux taints/tolerations sur les nœuds dédiés : sans elles, nodeSelector seul n’empêche pas les pods non désirés d’y être planifiés. Ajoutez `topologySpreadConstraints` pour répartir les réplicas entre zones, et testez la politique d’éviction avec `kubectl evict --dry-run`.

📬 Get new prompts every week

Join our newsletter and never miss a prompt.

Go further

Similar Prompts

💻DeveloppementAdvancedAll AIs

Implement CSP with nonces

Prevent XSS with strict CSP

0238

Debug a Production Error

Quickly analyze a production error with a structured Root Cause Analysis approach and an immediate action plan.

47521
💻DeveloppementIntermediateAll AIs

Implement JWT authentication

Add JWT auth to an API

0248
💻DeveloppementIntermediateAll AIs

GitHub Copilot Prompt for Generating JavaScript Code

GitHub Copilot, the AI-powered programming assistant developed by GitHub and OpenAI, has transformed the way developers write JavaScript code. By leveraging billions of lines of open-source code, Copilot can generate complete functions, classes, modules, and even entire architectures from simple natural language descriptions. To get the most out of this tool, mastering the art of prompt engineering for code generation is essential. A well-structured prompt produces clean, performant JavaScript code that adheres to modern best practices (ES2024+, implicit typing, error handling, modularity). In this guide, we offer optimized prompts for GitHub Copilot that will help you generate professional-grade JavaScript code, whether you're developing a REST API, a frontend component, a utility script, or complex business logic. Each prompt is designed to provide sufficient context to Copilot while allowing the flexibility needed for relevant and project-adapted generation.

0225