-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates droplets.tf, outputs.tf, templates/ to add TLS SANS for clust…
…er to include all control plane node addresses, VIP and clean up outputs to be more organized and reflect centralization on the LB IP. Signed-off-by: Joseph D. Marhee <[email protected]>
- Loading branch information
Showing
4 changed files
with
25 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,24 @@ | ||
output "controller_addresses" { | ||
description = "Kubernetes Controller IP Addresses" | ||
value = "${digitalocean_droplet.control-plane-init.ipv4_address}\n" | ||
} | ||
|
||
output "controller_peers" { | ||
description = "Control Plane Nodes" | ||
value = digitalocean_droplet.control-plane-replica.*.ipv4_address | ||
} | ||
|
||
output "worker_nodes" { | ||
description = "Worker Nodes" | ||
value = digitalocean_droplet.node.*.ipv4_address | ||
output "kubeconfig_base64" { | ||
description = "Base64 encoded kubeconfig string" | ||
value = data.external.k3s_config.result.kubeconfig | ||
} | ||
|
||
output "kubeconfig" { | ||
output "kubeconfig_location" { | ||
description = "Your Kubeconfig" | ||
value = "${path.module}/${pathexpand(format("%s-config", var.cluster_name))}" | ||
} | ||
|
||
output "kubeconfig_base64" { | ||
description = "Base64 encoded kubeconfig string" | ||
value = data.external.k3s_config.result.kubeconfig | ||
output "control_plane_lb_address" { | ||
description = "K3s Control Plane Load Balancer Address" | ||
value = digitalocean_loadbalancer.kubernetes_lb.ip | ||
} | ||
|
||
output "cluster_lb_address" { | ||
description = "K3s Cluster LB Address" | ||
value = digitalocean_loadbalancer.kubernetes_lb.ip | ||
output "control_plane_nodes" { | ||
description = "K3s Control Plane Node IP Addresses" | ||
value = "${digitalocean_droplet.control-plane-init.ipv4_address}, ${join(", ", digitalocean_droplet.control-plane-replica.*.ipv4_address)}" | ||
} | ||
|
||
output "worker_nodes" { | ||
description = "K3s Worker Nodes" | ||
value = digitalocean_droplet.node.*.ipv4_address | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters