메인 콘텐츠로 건너뛰기AWS Startups
  1. 프롬프트 라이브러리
  2. Karpenter + KEDA: 스팟 인스턴스를 사용한 비용 최적화 EKS

Karpenter + KEDA: 스팟 인스턴스를 사용한 비용 최적화 EKS

Karpenter 오토 스케일링, KEDA 기반 포드 관리, 스팟 인스턴스 우선순위 지정을 통해 프로덕션 환경에 바로 사용할 수 있는 EKS를 배포하며, 비용 최적화를 고려한 Bottlerocket OS, 암호화, 다중 AZ 고가용성을 포함합니다.

  • 코드형 인프라

프롬프트

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

어떻게 사용하나요?

베타
  1. AWS 환경 및 비용 관리 설정
  2. AWS CLI 설치
    • 운영 체제에 맞는 AWS CLI을(를) 다운로드하여 설치합니다.
  3. 프롬프트 복사
    • ‘프롬프트 복사’를 클릭하여 프롬프트를 클립보드에 복사합니다.
  4. 프롬프트 테스트
    • 프롬프트를 AI 도구(예: Kiro CLI)에 붙여넣고 실행하여 결과를 생성합니다.
  5. 검토, 배포 및 모니터링
    • 생성된 리소스와 예상 비용을 검토합니다.
    • 우선 개발 환경에 배포합니다.
    • 프로덕션으로 전환하기 전에 성과와 지출을 모니터링하세요.

이러한 프롬프트를 사용하면 고지 사항에 동의하는 것으로 간주됩니다.