This repository contains live examples for creation of kubernetes cluster which can run env0 deployments. You can take those examples and use them as-is or fork the repo and adjust for yourself.
You can, of course, mix and match according to your own needs.
If you'd like to create a cluster from scratch, including a VPC and an EFS for storage, you can simply use the aws root folder as a module.
// cluster.tf
module "my-cluster" {
source = "github.com/env0/k8s-modules//aws"
region = var.region
cluster_name = var.cluster_name
}You can also just pick out the parts necessary for your installation.
Check the versions.tf of submodule to know which providers are needed, check the providers.tf file of the root module to know how to configure them.
For example, only create a EFS CSI driver for storage:
// csi-driver.tf
module "csi-driver" {
source = "github.com/env0/k8s-modules//aws/csi-driver"
cluster_name = "eks_corporation_prod"
efs_id = var.efs_id
}Use env0 provider to create an agent pool and secret, and helm provider to install the agent chart - see example.
You can store the deployment logs on your own cloud provider, for supported cloud providers. See log-storage/README.md for more details.