binbashar / le-tf-infra-aws

Terraform code for Leverage Reference Architecture for AWS, designed under optimal configs for the most popular modern web and mobile applications needs.
https://www.binbash.co/leverage
Apache License 2.0
26 stars 8 forks source link

Terraform layer for a simple kubernetes cluster deployment #557

Open borland667 opened 7 months ago

borland667 commented 7 months ago

Describe the Feature

We propose the introduction of a new Terraform layer designed to deploy a single-node Kubernetes cluster. This setup will leverage an AWS EC2 instance for the Kubernetes node, coupled with a local provisioner for managing persistent volumes. The aim is to provide a streamlined, efficient Kubernetes environment suitable for smaller-scale applications, development, or testing purposes.

Expected Behavior

Upon implementation, this Terraform layer will:

Use Case

This feature is particularly useful in scenarios where the overhead of a full-scale EKS cluster is not justified, including:

Describe Ideal Solution

The Terraform configuration should:

Alternatives Considered

Utilization of EKS for all Kubernetes needs, which may not be cost-effective or necessary for smaller projects.

Additional Context

This proposal arises from the need to optimize for both operational efficiency and cost, targeting use cases where a full EKS deployment is not needed. Emphasis is placed on providing a viable, simplified Kubernetes solution that aligns with security best practices and operational requirements.