This repository has been archived by the owner on Aug 25, 2023. It is now read-only.
generated from basisai/terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvariables.tf
148 lines (124 loc) · 3.11 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
variable "name" {
description = "Base name of CRD resources"
}
variable "namespace" {
description = "Namespace to create resources in"
default = "default"
}
variable "ambassador_id" {
description = "Ambassador ID to create CRDs for"
default = ["default"]
}
variable "hostname" {
description = "Hostname for the endpoint"
}
variable "host_annotations" {
description = "Annotations for host"
default = {}
}
variable "host_labels" {
description = "Labels for host"
default = {
"app.kubernetes.io/managed-by" = "Terraform"
}
}
variable "host_spec" {
description = "Additional specifications for host"
default = {}
}
variable "mapping_annotations" {
description = "Annotations for mapping"
default = {}
}
variable "mapping_labels" {
description = "Labels for mapping"
default = {
"app.kubernetes.io/managed-by" = "Terraform"
}
}
#########################
# TLS Settings
#########################
variable "tls_enabled" {
description = "Enable TLS"
default = false
}
variable "acme_provider" {
description = "ACME Provider configuration if TLS is enabled"
default = {
authority = "None"
}
}
variable "tls_secret_name" {
description = "TLS Secret name"
default = null
}
variable "insecure_request_policy" {
description = "Request policy of insecure requests"
default = {
action = "Redirect"
additionalPort = 8080
}
}
variable "tlscontext_annotations" {
description = "Annotations for tlscontext"
default = {}
}
variable "tlscontext_labels" {
description = "Labels for tlscontext"
default = {
"app.kubernetes.io/managed-by" = "Terraform"
}
}
variable "tlscontext_spec" {
description = "Additional specifications for TLSContext"
default = {
min_tls_version = "v1.2"
alpn_protocols = "h2, http/1.1"
}
}
#########################
# Mapping Settings
#########################
variable "service" {
description = "Name of the service to map the host to, using the specified resolver"
type = string
}
variable "prefix" {
description = "Path prefix for the mapping"
default = "/"
}
variable "mapping_spec" {
description = "Additional specifications for mapping, like resolver"
default = {}
}
#########################
# TLS Origination
#########################
variable "tls_origination_enable" {
description = "Enable TLS Origination for the Mapping"
default = false
}
variable "tls_origination_name" {
description = "Name of the TLSContext created for TLS Origination. Defaults to var.name suffixed with -orig"
type = string
default = ""
}
variable "tls_original_secret" {
description = "Name of the secret for TLS origination"
default = ""
}
variable "tls_origination_annotations" {
description = "Annotations for TLSContext for TLS origination"
default = {}
}
variable "tls_origination_labels" {
description = "Labels for TLSContext for TLS origination"
default = {
"app.kubernetes.io/managed-by" = "Terraform"
}
}
variable "tls_origination_spec" {
description = "Additional spec for the TLSContext used in TLS origination"
default = {}
}