Provision a k3s Cluster in AWS
ec2-k3s
can be used to:
Prerequisites
Default Configuration
Usage
Clone the repository and change directories into it
git clone https://github.com/lucasrod16/ec2-k3s.git && cd ec2-k3s
List Makefile targets
make help
Build from source
The build step outputs the binary in the current working directory
make build
It can be executed by referencing it as ./ec2-k3s
Create a config file
The config file can be YAML or JSON
The region
and instanceType
fields are required
To view a full list of instance type options, see here
region: us-east-1
instanceType: t2.micro
Provision a k3s cluster in AWS
./ec2-k3s up -f config.yaml
Teardown AWS infrastructure and k3s cluster
./ec2-k3s down -f config.yaml