-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
78 lines (65 loc) · 1.88 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
variable "project_id" {
description = "The ID of the Public Cloud project the resources will be created in."
type = string
}
variable "region" {
description = "Region in which to create the various resources."
type = string
default = "DE1"
}
# Cluster settings
variable "cluster_name" {
description = "Name of the cluster to create."
type = string
}
variable "cluster_version" {
description = "Kubelet version to use when creating the cluster."
type = string
}
variable "node_pools" {
description = "Node pools to create for the cluster."
type = list(object({
flavor_name = string
nodes = number
min_nodes = optional(number, 0)
max_nodes = optional(number, 0)
name = optional(string, "")
template = optional(map(any), {})
monthly_billed = optional(bool, false)
}))
}
# Network settings
variable "network_openstack_id" {
description = "Openstack ID of the private network in which the cluster should be placed."
}
# OIDC settings
variable "oidc_provider_url" {
description = "URL to use for OIDC authentication. Enables OIDC if specified."
type = string
default = ""
}
variable "oidc_client_id" {
description = "OIDC client ID to give the cluster for login."
type = string
default = ""
}
variable "oidc_username_claim" {
description = "OIDC Property to use for username."
type = string
default = ""
}
variable "oidc_username_prefix" {
description = "Prefix to add to all usernames connecting to the cluster."
type = string
default = ""
}
variable "oidc_groups_claim" {
description = "Groups to include in the OIDC claim."
type = list(string)
default = []
}
variable "oidc_groups_prefix" {
description = "Prefix to add to all groups connecting to the cluster."
type = string
default = ""
}