Zum Hauptinhalt springenAWS Startups
  1. Prompt-Bibliothek
  2. Karpenter + KEDA: Kostenoptimiertes EKS mit Spot Instances

Karpenter + KEDA: Kostenoptimiertes EKS mit Spot Instances

Stellen Sie produktionsreife EKS mit Karpenter-Auto Scaling, KEDA-Pod-Management und Spot Instance-Priorisierung bereit. Enthält Bottlerocket OS, Verschlüsselung und Multi-AZ-Hochverfügbarkeit – optimiert für Kosten.

  • Infrastructure-as-Code

Prompt

Deploy Cost-Optimized Karpenter on EKS with Bottlerocket, Spot Instances, and KEDA

Act as a DevOps engineer and help me deploy Karpenter on an EKS cluster with the following requirements:

Cluster Elasticity & Scaling:

Configure Karpenter to make the cluster as elastic as possible
Set up KEDA to manage pod scaling based on CPU usage
Karpenter should handle node provisioning based on pod demands
Node Provisioning Strategy:

Provision general-purpose nodes only
Prioritize Spot instances and check Spot availability first
Fall back to On-Demand instances only when Spot is unavailable
Enable consolidation for cost optimization
Security & Hardening:

Use Bottlerocket OS for all nodes
Disable SSH access completely
Enable EBS volume encryption
High Availability:

Deploy across multiple availability zones to maximize Spot availability
Implementation:

Use Terraform with the official EKS module to provision the EKS cluster infrastructure
Use MCP (Model Context Protocol) to connect to the Kubernetes API for deployment and configuration
Provide all necessary Terraform configurations for EKS cluster setup
Provide all necessary Kubernetes manifests, Karpenter NodePool/EC2NodeClass configurations, and KEDA ScaledObject definitions
Include any required IAM roles, policies, and service account configurations
Please create a complete, production-ready setup with all configuration files needed.

Error Management:

Use MCP to connect to the Kubernetes API and verify if the EKS cluster exists
If the cluster doesn't exist, ask me if I want to create it and provide the creation steps using Terraform
Check the Kubernetes cluster version and verify compatibility with Karpenter
Recommend the appropriate Karpenter version based on the cluster version
If there's a version incompatibility, suggest either upgrading the cluster or using a compatible Karpenter version

Wie arbeite ich damit?

BETA
  1. Richten Sie Ihre AWS-Umgebung und Kostenkontrollen ein
  2. Installieren der AWS CLI
    • Laden Sie das AWS CLI für Ihr Betriebssystem herunter und installieren Sie es.
  3. Kopieren Sie den Prompt
    • Klicken Sie auf „Prompt kopieren“, um den Prompt in Ihre Zwischenablage zu kopieren.
  4. Testen Sie Ihren Prompt
    • Fügen Sie den Prompt in Ihr KI-Tool (z. B. Kiro CLI) ein und führen Sie ihn aus, um die Ergebnisse zu generieren.
  5. Überprüfen, bereitstellen und überwachen
    • Überprüfen Sie die generierten Ressourcen und die geschätzten Kosten.
    • Stellen Sie die Lösung zunächst in einer Entwicklungsumgebung bereit.
    • Überwachen Sie Leistung und Ausgaben, bevor Sie in die Produktion übergehen.

Mit der Verwendung dieser Prompts stimmen Sie dem Haftungsausschluss zu.

Karpenter + KEDA: Kostenoptimiertes EKS mit Spot Instances | AWS Startups