mirror of
https://github.com/puppetmaster/typhoon.git
synced 2024-12-26 07:29:32 +01:00
afac46e39a
* Originally, poseidon/terraform-render-bootstrap generated TLS certificates, manifests, and cluster "assets" written to local disk (`asset_dir`) during terraform apply cluster bootstrap * Typhoon v1.17.0 introduced bootstrapping using only Terraform state to store cluster assets, to avoid ever writing sensitive materials to disk and improve automated use-cases. `asset_dir` was changed to optional and defaulted to "" (no writes) * Typhoon v1.18.0 deprecated the `asset_dir` variable, removed docs, and announced it would be deleted in future. * Add Terraform output `assets_dir` map * Remove the `asset_dir` variable Cluster assets are now stored in Terraform state only. For those who wish to write those assets to local files, this is possible doing so explicitly. ``` resource local_file "assets" { for_each = module.yavin.assets_dist filename = "some-assets/${each.key}" content = each.value } ``` Related: * https://github.com/poseidon/typhoon/pull/595 * https://github.com/poseidon/typhoon/pull/678
51 lines
1.2 KiB
HCL
51 lines
1.2 KiB
HCL
output "kubeconfig-admin" {
|
|
value = module.bootstrap.kubeconfig-admin
|
|
}
|
|
|
|
# Outputs for Kubernetes Ingress
|
|
|
|
output "ingress_static_ipv4" {
|
|
description = "Global IPv4 address for proxy load balancing to the nearest Ingress controller"
|
|
value = google_compute_global_address.ingress-ipv4.address
|
|
}
|
|
|
|
output "ingress_static_ipv6" {
|
|
description = "Global IPv6 address for proxy load balancing to the nearest Ingress controller"
|
|
value = google_compute_global_address.ingress-ipv6.address
|
|
}
|
|
|
|
# Outputs for worker pools
|
|
|
|
output "network_name" {
|
|
value = google_compute_network.network.name
|
|
}
|
|
|
|
output "kubeconfig" {
|
|
value = module.bootstrap.kubeconfig-kubelet
|
|
}
|
|
|
|
# Outputs for custom firewalling
|
|
|
|
output "network_self_link" {
|
|
value = google_compute_network.network.self_link
|
|
}
|
|
|
|
# Outputs for custom load balancing
|
|
|
|
output "worker_instance_group" {
|
|
description = "Worker managed instance group full URL"
|
|
value = module.workers.instance_group
|
|
}
|
|
|
|
output "worker_target_pool" {
|
|
description = "Worker target pool self link"
|
|
value = module.workers.target_pool
|
|
}
|
|
|
|
# Outputs for debug
|
|
|
|
output "assets_dist" {
|
|
value = module.bootstrap.assets_dist
|
|
}
|
|
|