-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
121 lines (105 loc) · 2.9 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
variable "name" {
description = "(Required) Cluster name."
type = string
}
variable "hypervisor_code" {
description = "(Optional) Hypervisor code. XEN(Default), RHV"
type = string
default = "RHV"
}
variable "cluster_type" {
description = <<EOF
(Required) Cluster type. Maximum number of nodes
XEN / RHV
10 ea : SVR.VNKS.STAND.C002.M008.NET.SSD.B050.G002
50 ea : SVR.VNKS.STAND.C004.M016.NET.SSD.B050.G002
EOF
type = string
}
variable "login_key_name" {
description = "(Required) Login key name."
type = string
}
variable "zone" {
description = "(Required) zone Code."
type = string
}
variable "vpc_no" {
description = "(Required) VPC No."
type = string
}
variable "subnet_no_list" {
description = "(Required) Subnet No. list."
type = list(string)
}
variable "public_network" {
description = "(Optional) Public Subnet Network (boolean)"
type = bool
default = false
}
variable "lb_private_subnet_no" {
description = "(Required) Subnet No. for private loadbalancer only."
type = string
}
variable "lb_public_subnet_no" {
description = "(Optional) Subnet No. for public loadbalancer only. (Required in KR, SG, JP regions in public site)"
type = string
default = null
}
variable "kube_network_plugin" {
description = "(Optional) Specifies the network plugin. Only Cilium is supported."
type = string
default = "Cilium"
}
variable "log" {
description = "(Optional) Log configuration."
type = object({
audit = bool
})
default = null
}
variable "k8s_version" {
description = "(Optional) Kubenretes version. Only upgrade is supported."
type = string
default = null
}
variable "oidc" {
description = <<EOF
(Optional) OIDC configuration.
- issuer_url - (Required) Issuer URL.
- client_id - (Required) Client ID.
- username_prefix - (Optional) Username prefix.
- username_claim - (Optional) Username claim.
- groups_prefix - (Optional) Groups prefix.
- groups_claim - (Optional) Groups claim.
- required_claim - (Optional) Required claim.
EOF
type = object({
issuer_url = string
client_id = string
username_prefix = optional(string)
username_claim = optional(string)
groups_prefix = optional(string)
groups_claim = optional(string)
required_claim = optional(string)
})
default = null
}
variable "ip_acl_default_action" {
description = "(Optional) IP ACL default action. allow, deny"
type = string
default = "deny"
validation {
condition = contains(["allow", "deny"], var.ip_acl_default_action)
error_message = "ip_acl_default_action must be either allow or deny."
}
}
variable "ip_acl" {
description = "(Optional) IP ACL. Supported on public, gov site"
type = list(object({
action = string
address = string
comment = optional(string)
}))
default = null
}