mirror of
https://github.com/puppetmaster/typhoon.git
synced 2024-12-26 07:29:32 +01:00
7c6ab21b94
* DigitalOcean introduced Virtual Private Cloud (VPC) support to match other clouds and enhance the prior "private networking" feature. Before, droplet's belonging to different clusters (but residing in the same region) could reach one another (although Typhoon firewall rules prohibit this). Now, droplets in a VPC reside in their own network * https://www.digitalocean.com/docs/networking/vpc/ * Create droplet instances in a VPC per cluster. This matches the design of Typhoon AWS, Azure, and GCP. * Require `terraform-provider-digitalocean` v1.16.0+ (action required) * Output `vpc_id` for use with an attached DigitalOcean loadbalancer
57 lines
1.2 KiB
HCL
57 lines
1.2 KiB
HCL
output "kubeconfig-admin" {
|
|
value = module.bootstrap.kubeconfig-admin
|
|
}
|
|
|
|
# Outputs for Kubernetes Ingress
|
|
|
|
output "controllers_dns" {
|
|
value = digitalocean_record.controllers[0].fqdn
|
|
}
|
|
|
|
output "workers_dns" {
|
|
# Multiple A and AAAA records with the same FQDN
|
|
value = digitalocean_record.workers-record-a[0].fqdn
|
|
}
|
|
|
|
output "controllers_ipv4" {
|
|
value = digitalocean_droplet.controllers.*.ipv4_address
|
|
}
|
|
|
|
output "controllers_ipv6" {
|
|
value = digitalocean_droplet.controllers.*.ipv6_address
|
|
}
|
|
|
|
output "workers_ipv4" {
|
|
value = digitalocean_droplet.workers.*.ipv4_address
|
|
}
|
|
|
|
output "workers_ipv6" {
|
|
value = digitalocean_droplet.workers.*.ipv6_address
|
|
}
|
|
|
|
# Outputs for worker pools
|
|
|
|
output "kubeconfig" {
|
|
value = module.bootstrap.kubeconfig-kubelet
|
|
}
|
|
|
|
# Outputs for custom firewalls
|
|
|
|
output "controller_tag" {
|
|
description = "Tag applied to controller droplets"
|
|
value = digitalocean_tag.controllers.name
|
|
}
|
|
|
|
output "worker_tag" {
|
|
description = "Tag applied to worker droplets"
|
|
value = digitalocean_tag.workers.name
|
|
}
|
|
|
|
# Outputs for custom load balancing
|
|
|
|
output "vpc_id" {
|
|
description = "ID of the cluster VPC"
|
|
value = digitalocean_vpc.network.id
|
|
}
|
|
|