-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
101 lines (85 loc) · 2.32 KB
/
variables.tf
File metadata and controls
101 lines (85 loc) · 2.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
variable "aws_region" {
description = "AWS region to deploy the cluster"
type = string
default = "us-east-1"
}
variable "environment" {
description = "Environment name (e.g., dev, staging, prod)"
type = string
default = "dev"
}
variable "cluster_name" {
description = "Name of the RKE2 cluster"
type = string
default = "rke2-ha-cluster"
}
variable "vpc_cidr" {
description = "CIDR block for the VPC"
type = string
default = "10.0.0.0/16"
}
variable "public_subnet_cidrs" {
description = "CIDR blocks for public subnets"
type = list(string)
default = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"]
}
variable "rke2_version" {
description = "RKE2 version to install (includes Kubernetes version)"
type = string
default = "v1.34.6+rke2r1"
}
variable "control_plane_count" {
description = "Number of control plane nodes"
type = number
default = 3
}
variable "worker_count" {
description = "Number of worker nodes"
type = number
default = 3
}
variable "control_plane_instance_type" {
description = "EC2 instance type for control plane nodes"
type = string
default = "t3.medium"
}
variable "worker_instance_type" {
description = "EC2 instance type for worker nodes"
type = string
default = "t3.medium"
}
variable "root_volume_size" {
description = "Size of the root volume in GB"
type = number
default = 50
}
variable "ssh_public_key_path" {
description = "Path to local SSH public key file (e.g., ~/.ssh/id_rsa.pub)"
type = string
}
variable "ssh_key_name" {
description = "Name for the AWS key pair (will be created from public key)"
type = string
default = "rke2-cluster-key"
}
variable "rke2_token" {
description = "Shared secret token for RKE2 cluster join (auto-generated if empty)"
type = string
default = ""
sensitive = true
}
variable "admin_cidr_blocks" {
description = "CIDR blocks allowed for SSH access"
type = list(string)
default = ["0.0.0.0/0"]
}
variable "pod_cidr" {
description = "CIDR block for pod network"
type = string
default = "10.42.0.0/16"
}
variable "service_cidr" {
description = "CIDR block for service network"
type = string
default = "10.43.0.0/16"
}