Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
1 contributor

Users who have contributed to this file

159 lines (134 sloc) 3.92 KB
variable "project" {
description = "Project name used for tags"
type = string
default = "k8s-the-right-hard-way-aws"
}
variable "owner" {
description = "Owner name used for tags"
type = string
default = "napo.io"
}
variable "stage" {
description = "Environment name (e.g. `testing`, `dev`, `staging`, `prod`)"
type = string
default = "testing"
}
variable "aws_profile" {
description = "AWS cli profile (e.g. `default`)"
type = string
default = "default"
}
variable "aws_region" {
description = "AWS region (e.g. `us-east-1` => US North Virginia)"
type = string
default = "us-east-1"
}
variable "availability_zones" {
description = "Number of different AZs to use"
type = number
default = 3
}
variable "aws_vpc_cidr" {
description = "VPC CIDR block"
type = string
default = "10.23.0.0/16"
}
variable "aws_key_pair_name" {
description = "AWS Key Pair name to use for EC2 Instances (if already existent)"
type = string
default = null
}
variable "ssh_public_key_path" {
description = "SSH public key path (to create a new AWS Key Pair from existing local SSH public RSA key)"
type = string
default = "~/.ssh/id_rsa.pub"
}
variable "hosted_zone" {
description = "Route53 Hosted Zone for creating records (without . suffix, e.g. `napo.io`)"
type = string
}
variable "pod_cidr" {
description = "The first two octets for the Pod network CIDR (used in Worker UserData to generate POD_CIDR envvar)"
type = string
default = "10.200"
}
variable "bastion_max_size" {
description = "Maximum number of EC2 instances for Bastion AutoScalingGroup"
type = number
default = 1
}
variable "bastion_min_size" {
description = "Minimum number of EC2 instances for Bastion AutoScalingGroup"
type = number
default = 1
}
variable "bastion_size" {
description = "Desired number of EC2 instances for Bastion AutoScalingGroup"
type = number
default = 1
}
variable "etcd_max_size" {
description = "Maximum number of EC2 instances for etcd AutoScalingGroup"
type = number
default = 3
}
variable "etcd_min_size" {
description = "Minimum number of EC2 instances for etcd AutoScalingGroup"
type = number
default = 3
}
variable "etcd_size" {
description = "Desired number of EC2 instances for etcd AutoScalingGroup"
type = number
default = 3
}
variable "master_max_size" {
description = "Maximum number of EC2 instances for K8s Master AutoScalingGroup"
type = number
default = 3
}
variable "master_min_size" {
description = "Minimum number of EC2 instances for K8s Master AutoScalingGroup"
type = number
default = 3
}
variable "master_size" {
description = "Desired number of EC2 instances for K8s Master AutoScalingGroup"
type = number
default = 3
}
variable "worker_max_size" {
description = "Maximum number of EC2 instances for K8s Worker AutoScalingGroup"
type = number
default = 3
}
variable "worker_min_size" {
description = "Minimum number of EC2 instances for K8s Worker AutoScalingGroup"
type = number
default = 3
}
variable "worker_size" {
description = "Desired number of EC2 instances for K8s Worker AutoScalingGroup"
type = number
default = 3
}
variable "bastion_instance_type" {
description = "EC2 instance type for Bastion Host"
type = string
default = "t3a.small"
}
variable "etcd_instance_type" {
description = "EC2 instance type for etcd instances"
type = string
default = "t3a.small"
}
variable "master_instance_type" {
description = "EC2 instance type for K8s master instances"
type = string
default = "t3a.small"
}
variable "worker_instance_type" {
description = "EC2 instance type for K8s worker instances"
type = string
default = "t3a.small"
}
You can’t perform that action at this time.