-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
65 lines (54 loc) · 1.51 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
variable "name" {
type = string
default = "deployment"
}
variable "dns_names" {
type = list(string)
default = ["example.com"]
}
variable "target_port" {
type = number
default = 80
}
variable "image" {
type = string
default = "yeasy/simple-web"
}
variable "requests_cpu" {
default = "250m"
}
variable "requests_memory" {
default = "64Mi"
}
# kubectl
variable "host" {
description = "(Required) The hostname (in form of URI) of the Kubernetes API. Can be sourced from KUBE_HOST."
type = string
}
variable "client_certificate" {
description = "(Required) PEM-encoded client certificate for TLS authentication. Can be sourced from KUBE_CLIENT_CERT_DATA."
type = string
}
variable "client_key" {
description = "(Required) PEM-encoded client certificate key for TLS authentication. Can be sourced from KUBE_CLIENT_KEY_DATA."
type = string
}
variable "cluster_ca_certificate" {
description = "(Required) PEM-encoded root certificates bundle for TLS authentication. Can be sourced from KUBE_CLUSTER_CA_CERT_DATA."
type = string
}
variable "zone" {
description = "Zone"
type = string
default = "at-vie-1"
}
variable "env_name" {
description = "Environment (Prod or Dev)"
type = string
default = "dev"
}
variable "deployment_strategy" {
description = "(Optional) The deployment strategy to use to replace existing pods with new ones. Can be 'Recreate' or 'RollingUpdate'. Default is RollingUpdate."
type = string
default = "RollingUpdate"
}