aws-cluster

drpebcak/aws-cluster/k3s

Terraform Module HCL K3S
Install
module "aws-cluster" {
source = "drpebcak/aws-cluster/k3s"
version = "0.13.0"
}
plain text: /constructs/tfmod-drpebcak-aws-cluster-k3s/install.txt
⭐ Source on GitHub 📦 Registry page
README

Terraform K3S AWS Cluster This module supports creating a k3s cluster with a postgres backend in AWS. It allows you to optionally install Rancher Server cert-manager, or import your K3S cluster into an existing Rancher Server. Requirements | Name | Version | |------|---------| | terraform | >= 0.13 | | rancher2 | >= 1.10.3 | Providers | Name | Version | |------|---------| | aws | n/a | | aws.r53 | n/a | | null | n/a | | rancher2.bootstrap | >= 1.10.3 | | random | n/a | | template | n/a | Modules No modules. Resources | Name | Type | |------|------| | aws_autoscaling_group.k3s_agent | resource | | aws_autoscaling_group.k3s_server | resource | | aws_db_subnet_group.private | resource | | aws_launch_template.k3s_agent | resource | | aws_launch_template.k3s_server | resource | | aws_lb.lb | re

Inputs (50)
NameTypeDescriptionDefault
db_passstringPassword for RDS user required
db_userstringUsername for RDS database required
rancher_passwordstringPassword to set for admin user during bootstrap of Rancher Server required
private_subnetslist(any)List of private subnet ids.[]
install_nginxboolInstall ingress-nginxtrue
ssh_keyslist(string)SSH keys to inject into Rancher instances[]
domainstring"eng.rancher.space"
agent_k3s_execstringexec args to pass to k3s agentsnull
agent_instance_ssh_userstringUsername for sshing into instances"ubuntu"
k3s_tls_sanstringSets k3s tls-san flag to this value instead of the default load balancernull
create_external_nlbboolBoolean that defines whether or not to create an external load balancertrue
registration_commandstringRegistration command to import cluster into Rancher. Should not be used when ins""
server_volume_typestringVolume Type for K3S Server nodes"gp3"
rancher_token_updateboolRegenerate admin token.false
server_instance_ssh_userstringUsername for sshing into instances"ubuntu"
install_k3s_versionstringVersion of K3S to install"1.22.9+k3s1"
public_subnets_cidr_blockslist(any)List of cidr_blocks of public subnets[]
aws_profilestringName of the AWS Profile to use for authenticationnull
db_engine_versionstringEngine Version for RDS Database"13.4"
extra_server_security_groupslist(any)Additional security groups to attach to k3s server instances[]
subdomainstringsubdomain to host rancher on, instead of using `var.name`null
install_rancherboolBoolean that defines whether or not to install Rancherfalse
nginx_versionstringVersion of ingress-nginx helm chart to install"4.1.3"
… and 10 more inputs
Outputs (5)
external_lb_dns_name
k3s_cluster_secret
rancher_admin_password
rancher_url
rancher_token
Resources (16)
aws_autoscaling_groupaws_db_subnet_groupaws_launch_templateaws_lbaws_lb_listeneraws_lb_target_groupaws_rds_clusteraws_rds_cluster_instanceaws_rds_cluster_parameter_groupaws_route53_recordaws_security_groupaws_security_group_rulenull_resourcerancher2_bootstraprandom_passwordrandom_pet
Details
FrameworkTerraform Module
LanguageHCL
Version0.13.0
Cloud K3S
★ Stars11
Forks12
Total downloads2.1k
Inputs50
Outputs5
Resources16
LicenseApache-2.0
Namespacedrpebcak
Updated