-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
64f38f0
commit fb6db72
Showing
5 changed files
with
87 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
data "aws_availability_zones" "available" {} | ||
data "aws_caller_identity" "current" {} | ||
|
||
locals { | ||
name = "k3s-test" | ||
region = "eu-central-1" | ||
vpc_cidr = "10.0.0.0/16" | ||
azs = slice(data.aws_availability_zones.available.names, 0, 3) | ||
tags = { | ||
Example = local.name | ||
} | ||
master_node_labels = ["node-type=master"] | ||
awsprofile = "cluster-dev" | ||
master_instance_type = "t3.medium" | ||
master_root_volume_size = 50 | ||
domain = "k3s-test.cluster.dev" | ||
k3s_version = "1.25.11+k3s1" | ||
s3_bucket = "cluster-dev-k3s" | ||
key_name = "arti-key" | ||
worker_node_groups = [] | ||
extra_api_args = { | ||
oidc-issuer-url = "https://example.com/my" | ||
oidc-username-claim = "email" | ||
oidc-groups-claim = "groups" | ||
oidc-client-id = "login" | ||
allow-privileged = "true" | ||
} | ||
extra_args = [ | ||
"--disable traefik" | ||
] | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
provider "aws" { | ||
region = var.region | ||
profile = var.awsprofile | ||
shared_credentials_file = "$HOME/.aws/credentials" | ||
version = "~> 3.0" | ||
region = local.region | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +0,0 @@ | ||
awsprofile = "cluster-dev" | ||
azs = ["eu-central-1a", "eu-central-1b"] | ||
region = "eu-central-1" | ||
master_instance_type = "t3.medium" | ||
master_root_volume_size = 50 | ||
master_node_labels = ["node-type=master"] | ||
domain = "k3s-test.cluster.dev" | ||
k3s_version = "1.19.3+k3s1" | ||
s3_bucket = "cluster-dev-k3s" | ||
cluster_name = "k3s-test" | ||
key_name = "arti-key" | ||
worker_node_groups = [] | ||
|
||
extra_api_args = { | ||
oidc-issuer-url = "https://example.com/my" | ||
oidc-username-claim = "email" | ||
oidc-groups-claim = "groups" | ||
oidc-client-id = "login" | ||
allow-privileged = "true" | ||
} | ||
|
||
extra_args = [ | ||
"--disable traefik" | ||
] | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,59 @@ | ||
variable awsprofile { | ||
variable "awsprofile" { | ||
type = string | ||
default = "default" | ||
description = "The aws credential profile alias in ~/.aws/credentials" | ||
} | ||
|
||
variable azs { | ||
type = list | ||
variable "azs" { | ||
type = list(any) | ||
description = "Availability Zones to deploy cluster" | ||
} | ||
|
||
variable region { | ||
variable "region" { | ||
type = string | ||
description = "The AWS region." | ||
} | ||
|
||
variable master_instance_type { | ||
variable "master_instance_type" { | ||
type = string | ||
} | ||
|
||
variable k3s_version { | ||
variable "k3s_version" { | ||
type = string | ||
description = "k3s version" | ||
} | ||
|
||
variable data_volume_size { | ||
variable "data_volume_size" { | ||
type = string | ||
default = "50" | ||
description = "Instances data volume size in Gb" | ||
} | ||
|
||
variable key_name { | ||
variable "key_name" { | ||
type = string | ||
} | ||
|
||
variable s3_bucket { | ||
variable "s3_bucket" { | ||
type = string | ||
} | ||
|
||
variable domain { | ||
variable "domain" { | ||
type = string | ||
} | ||
|
||
variable cluster_name { | ||
variable "cluster_name" { | ||
type = string | ||
} | ||
|
||
variable worker_node_groups { | ||
variable "worker_node_groups" { | ||
description = "A list of worker groups configs. See description in comments" | ||
type = any | ||
} | ||
|
||
variable master_node_labels { | ||
type = list | ||
variable "master_node_labels" { | ||
type = list(any) | ||
} | ||
|
||
variable master_root_volume_size { | ||
variable "master_root_volume_size" { | ||
type = number | ||
} |