forked from cookielab/terraform-kubernetes-metrics-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
112 lines (95 loc) · 3.46 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
variable "kubernetes_namespace" {
type = string
default = "kube-system"
description = "Kubernetes namespace to deploy metrics server."
}
variable "kubernetes_resources_name_prefix" {
type = string
default = ""
description = "Prefix for kubernetes resources name. For example `tf-module-`"
}
variable "kubernetes_resources_labels" {
type = map(string)
default = {}
description = "Additional labels for kubernetes resources."
}
variable "kubernetes_deployment_node_selector" {
type = map(string)
default = {
"beta.kubernetes.io/os" = "linux"
}
description = "Node selectors for kubernetes deployment"
}
variable "kubernetes_deployment_tolerations" {
type = list(object({
key = string
operator = string
value = string
effect = string
}))
default = []
}
variable "metrics_server_image" {
type = string
default = "k8s.gcr.io/metrics-server-amd64"
}
variable "metrics_server_image_tag" {
type = string
default = "v0.3.6"
}
variable "metrics_server_option_logtostderr" {
type = bool
default = true
description = "Log to standard error instead of files in the container. You generally want this on."
}
variable "metrics_server_option_loglevel" {
type = number
default = 0
description = "Set log verbosity. It's generally a good idea to run a log level 1 or 2 unless you're encountering errors. At log level 10, large amounts of diagnostic information will be reported, include API request and response bodies, and raw metric results from Kubelet."
}
variable "metrics_server_option_secure_port" {
type = number
default = 4443
description = "Set the secure port. If you're not running as root, you'll want to set this to something other than the default."
}
variable "metrics_server_option_tls_cert_file" {
type = string
default = null
description = "The serving certificate and key files. If not specified, self-signed certificates will be generated, but it's recommended that you use non-self-signed certificates in production."
}
variable "metrics_server_option_tls_private_key_file" {
type = string
default = null
description = "The serving certificate and key files. If not specified, self-signed certificates will be generated, but it's recommended that you use non-self-signed certificates in production."
}
variable "metrics_server_option_kubelet_certificate_authority" {
type = string
default = null
description = "The path of the CA certificate to use for validate the Kubelet's serving certificates."
}
variable "metrics_server_option_metric_resolution" {
type = string
default = "60s"
description = "The interval at which metrics will be scraped from Kubelets in seconds."
}
variable "metrics_server_option_kubelet_insecure_tls" {
type = bool
default = false
description = "Skip verifying Kubelet CA certificates. Not recommended for production usage, but can be useful in test clusters with self-signed Kubelet serving certificates."
}
variable "metrics_server_option_kubelet_port" {
type = number
default = 10250
description = "The port to use to connect to the Kubelet (defaults to the default secure Kubelet port, 10250)."
}
variable "metrics_server_option_kubelet_preferred_address_types" {
type = list(string)
default = [
"Hostname",
"InternalDNS",
"InternalIP",
"ExternalDNS",
"ExternalIP"
]
description = "The order in which to consider different Kubelet node address types when connecting to Kubelet. Functions similarly to the flag of the same name on the API server."
}