Skip to content

transhapHigsn/urban-spot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Urban Spot: K3S HA Setup using Embedded Etcd and Calico CNI on AWS

This setup tries to implement Embedded etcd experimental high availability setup of k3s. Apart from that, setup uses Calico CNI instead of default Flannel CNI.

Note: Setup is done exclusively for Amazon Linux 2 AMI.

Features

  • High Availability setup
  • Air Gap Install
  • Calico CNI
  • Cluster auto-scaler
  • Private docker registry for cluster
  • Amazon Linux 2
  • AWS Cloud controller manager

RoadMap

  • Single command to provision everything.
  • Stricter security group rules.
  • Use kube2iam/kiam for IAM roles.
  • Add Loadbalancer support.
  • and many others tbd.

Usage

The terraform scripts are divided into different modules, all are standalone. You can either start from scratch or pick any based on your requirements. As of now, the project contains following modules:

  • VPC
  • IAM
  • Master
  • Worker

All of the modules are fully customizable. Terraform scripts will run even if you want to go with default. For first time, run modules by executing following commands from the root of the module:

terraform init
terraform apply -auto-approve

Except for Master:

terraform init
export PUBLIC_SSH_KEY=$(cat /path/to/public/ssh/key)
terraform apply -var="deployer-public-key=$PUBLIC_SSH_KEY"

Note: Worker modules uses ssh key used for master module, but you don't have to define that explicitly.

On following runs:

terraform apply -auto-approve

will work. To destroy provisioned resources in a module, just run

terraform destroy -auto-approve

Disclaimer: This is just for testing and development purposes, do not use this for production environment.

About

K3s HA setup using Embedded etcd and Calico for aws

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published