-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathcf4k8s.tf
107 lines (85 loc) · 2.86 KB
/
cf4k8s.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
module "cf4k8s" {
source = "../../../modules/cf4k8s"
domain = "cf.${var.base_domain}"
registry_domain = var.registry_domain
repository_prefix = var.repository_prefix
registry_username = var.registry_username
registry_password = var.registry_password
https_only = var.https_only
remove_resource_requirements = var.remove_resource_requirements
add_metrics_server_components = var.add_metrics_server_components
allow_prometheus_metrics_access = var.allow_prometheus_metrics_access
enable_load_balancer = var.enable_load_balancer
use_external_dns_for_wildcard = var.use_external_dns_for_wildcard
enable_automount_service_account_token = var.enable_automount_service_account_token
metrics_server_prefer_internal_kubelet_address = var.metrics_server_prefer_internal_kubelet_address
use_first_party_jwt_tokens = var.use_first_party_jwt_tokens
kubeconfig_path = var.kubeconfig_path
ytt_lib_dir = var.ytt_lib_dir
}
variable "base_domain" {
description = "An existing domain wherein a number of *.cf.<domain> wildcard domain recordsets will be made available"
}
variable "registry_domain" {
description = "Container image/artifact registry/repository domain"
}
variable "repository_prefix" {
description = "Container image/artifact registry/repository name"
}
variable "registry_username" {
description = "Container image/artifact registry/repository username"
default = "admin"
sensitive = true
}
variable "registry_password" {
description = "Container image/artifact registry/repository password"
sensitive = true
}
variable "https_only" {
default = true
}
variable "remove_resource_requirements" {
default = true
}
variable "add_metrics_server_components" {
default = false
}
variable "allow_prometheus_metrics_access" {
default = false
}
variable "enable_load_balancer" {
default = true
}
variable "use_external_dns_for_wildcard" {
default = true
}
variable "enable_automount_service_account_token" {
default = false
}
variable "metrics_server_prefer_internal_kubelet_address" {
default = false
}
variable "use_first_party_jwt_tokens" {
default = false
}
variable "kubeconfig_path" {
description = "The path to your .kube/config"
default = "~/.kube/config"
}
variable "ytt_lib_dir" {
description = "Path to directory where YAML template files will be operated upon by ytt k14s Teraform provider; @see https://github.com/k14s/terraform-provider-k14s/blob/master/docs/k14s_ytt.md"
default = "../../ytt-libs"
}
output "cf_api_endpoint" {
description = "Cloud Foundry API endpoint"
value = module.cf4k8s.cf_api_endpoint
}
output "cf_admin_username" {
description = "Cloud Foundry admin username"
value = module.cf4k8s.cf_admin_username
}
output "cf_admin_password" {
description = "Cloud Foundry admin password"
value = module.cf4k8s.cf_admin_password
sensitive = true
}