It looks somehow random that the SSH-port was simply defined in the configuration of the k3s-setup. It looks somehow "configurable" although it isn't. Therefore I moved this setting to the correct place in the terraform-setup. An important side-note is that this change doesn't make it possible to _change_ the ssh-port, though. Once decided for an port and I have to stick to it until I tear down the cluster!
24 lines
492 B
HCL
24 lines
492 B
HCL
output "server_ips_v4" {
|
|
value = [for key, value in hcloud_server.server : value.ipv4_address]
|
|
}
|
|
|
|
output "server_ips_v6" {
|
|
value = [for key, value in hcloud_server.server : value.ipv6_address]
|
|
}
|
|
|
|
output "agent_ips_v4" {
|
|
value = flatten([for key, value in hcloud_server.agent : value.network.*.ip])
|
|
}
|
|
|
|
output "private_network_cidr" {
|
|
value = local.network
|
|
}
|
|
|
|
output "private_network_nat" {
|
|
value = cidrhost(local.subnet_eu_central, 1)
|
|
}
|
|
|
|
output "ssh_port" {
|
|
value = var.ssh_port
|
|
}
|