Lewati ke konten utamaAWS Startups
  1. Pustaka Prompt
  2. Karpenter + KEDA: EKS yang Dioptimalkan Biaya dengan Instans Spot

Karpenter + KEDA: EKS yang Dioptimalkan Biaya dengan Instans Spot

Lakukan deployment EKS yang siap produksi dengan penskalaan otomatis Karpenter, manajemen pod KEDA, dan prioritas instans Spot. Termasuk Bottlerocket OS, enkripsi, dan ketersediaan tinggi multi-AZ—yang dioptimalkan untuk biaya.

  • Infrastruktur sebagai Kode

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

Bagaimana cara menggunakan?

BETA
  1. Siapkan lingkungan AWS dan kontrol biaya Anda
  2. Instal AWS CLI
    • Unduh dan instal AWS CLI untuk sistem operasi Anda.
  3. Salin prompt
    • Klik “Salin Prompt” untuk menyalin prompt ke papan klip Anda.
  4. Uji prompt Anda
    • Tempelkan prompt ke alat AI Anda (misalnya, CLI Q Developer) dan jalankan prompt untuk menghasilkan hasil.
  5. Tinjau, lakukan deployment, dan pantau
    • Tinjau sumber daya yang dihasilkan dan perkiraan biaya.
    • Lakukan deployment lingkungan pengembangan terlebih dahulu.
    • Pantau performa dan pengeluaran sebelum pindah ke produksi.

Dengan menggunakan prompt ini, Anda menyetujui penafian ini.

Karpenter + KEDA: EKS yang Dioptimalkan Biaya dengan Instans Spot | AWS Startups