This repository has been archived by the owner on Jan 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
/
variables.tf
93 lines (77 loc) · 3.13 KB
/
variables.tf
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
variable "k8s_cluster_type" {
description = "Can be set to `vanilla` or `eks`. If set to `eks`, the Kubernetes cluster will be assumed to be run on EKS which will make sure that the AWS IAM Service integration works as expected."
type = string
default = "vanilla"
}
variable "k8s_cluster_name" {
description = "Name of the Kubernetes cluster. This string is used to contruct the AWS IAM permissions and roles. If targeting EKS, the corresponsing managed cluster name must match as well."
type = string
}
variable "k8s_namespace" {
description = "Kubernetes namespace to deploy the AWS Load Balancer Controller into."
type = string
default = "default"
}
variable "k8s_replicas" {
description = "Number of replicas to be created."
type = number
default = 1
}
variable "k8s_pod_annotations" {
description = "Additional annotations to be added to the Pods."
type = map(string)
default = {}
}
variable "k8s_pod_labels" {
description = "Additional labels to be added to the Pods."
type = map(string)
default = {}
}
variable "aws_iam_path_prefix" {
description = "Prefix to be used for all AWS IAM objects."
type = string
default = ""
}
variable "aws_vpc_id" {
description = "ID of the Virtual Private Network to utilize. Can be ommited if targeting EKS."
type = string
default = null
}
variable "aws_region_name" {
description = "ID of the Virtual Private Network to utilize. Can be ommited if targeting EKS."
type = string
default = null
}
variable "aws_resource_name_prefix" {
description = "A string to prefix any AWS resources created. This does not apply to K8s resources"
type = string
default = "k8s-"
}
variable "aws_tags" {
description = "Common AWS tags to be applied to all AWS objects being created."
type = map(string)
default = {}
}
variable "aws_load_balancer_controller_chart_version" {
description = "The AWS Load Balancer Controller version to use. See https://github.com/aws/eks-charts/releases/ and https://github.com/kubernetes-sigs/aws-load-balancer-controller/releases for available versions"
type = string
default = "1.3.3"
}
variable "alb_controller_depends_on" {
description = "Resources that the module should wait for before starting the controller. For example if there is no node_group, 'aws_eks_fargate_profile.default'"
}
variable "target_groups" {
description = "Group Binding details for TargetGroupBindings. Expected object fields: name, backend_port, target_group_arn, target_type See https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.1/guide/targetgroupbinding/targetgroupbinding/ for details."
type = any
default = []
}
variable "enable_host_networking" {
description = "If true enable host networking. See https://github.com/aws/eks-charts/tree/master/stable/aws-load-balancer-controller#configuration for details."
type = bool
default = false
}
variable "chart_env_overrides" {
description = "env values passed to the load balancer controller helm chart."
type = map(any)
default = {}
}