-
Notifications
You must be signed in to change notification settings - Fork 2
/
variables.tf
130 lines (109 loc) · 4.16 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
// Copyright 2022 Isovalent, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
variable "cilium_helm_chart" {
default = "cilium/cilium"
description = "The name of the Helm chart to use to install Cilium. It is assumed that the Helm repository containing this chart has been added beforehand (e.g. using 'helm repo add')."
type = string
}
variable "cilium_helm_extra_args" {
default = ""
description = "Extra arguments to be passed to the 'helm upgrade --install' command that installs Cilium."
type = string
}
variable "cilium_helm_release_name" {
default = "cilium"
description = "The name of the Helm release to use for Cilium."
type = string
}
variable "cilium_helm_values_file_path" {
description = "The path to the file containing the values to use when installing Cilium."
type = string
}
variable "cilium_helm_values_override_file_path" {
description = "The path to the file containing the values to use when installing Cilium. These values will override the ones in 'cilium_helm_values_file_path'."
type = string
}
variable "cilium_helm_version" {
description = "The version of the Cilium Helm chart to install."
type = string
}
variable "cilium_namespace" {
default = "kube-system"
description = "The namespace in which to install Cilium."
type = string
}
variable "deploy_etcd_cluster" {
default = false
description = "Whether to deploy an 'etcd' cluster suitable for usage as the Cilium key-value store (HIGHLY EXPERIMENTAL)."
type = bool
}
variable "control_plane_nodes_label_selector" {
default = "node-role.kubernetes.io/control-plane"
description = "The label selector used to filter control-plane nodes."
type = string
}
variable "extra_provisioner_environment_variables" {
default = {}
description = "A map of extra environment variables to include when executing the provisioning script."
type = map(string)
}
variable "ipsec_key" {
default = ""
description = "The IPsec key to use for transparent encryption. Leave empty for none to be created (in which case encryption should be disabled in Helm as well)."
type = string
}
variable "path_to_kubeconfig_file" {
description = "The path to the kubeconfig file to use."
type = string
}
variable "pre_cilium_install_script" {
default = ""
description = "A script to be run right before installing Cilium."
type = string
}
variable "post_cilium_install_script" {
default = ""
description = "A script to be run right after installing Cilium."
type = string
}
variable "total_control_plane_nodes" {
default = 3
description = "The number of control-plane nodes expected in the cluster."
type = number
}
variable "wait_for_total_control_plane_nodes" {
default = false
description = "Whether to wait for the expected number of control-plane nodes to be registered before applying any changes."
type = bool
}
variable "install_kube_prometheus_servicemonitor_crd" {
default = true
description = "Whether to install the 'kube-prometheus' ServiceMonitor CRD."
type = bool
}
variable "disable_kube_proxy" {
default = false
description = "Whether to disable the kube proxy so the cluster uses kube-proxy replacement"
type = bool
}
variable "kube_proxy_namespace" {
default = "kube-system"
description = "Whether to disable the kube proxy so the cluster uses kube-proxy replacement"
type = string
}
variable "kube_prometheus_crds_version" {
default = "v0.13.0"
description = "Version of the 'kube-prometheus' ServiceMonitor CRD to install."
type = string
}