Skip to content

Instantly share code, notes, and snippets.

@dongsupark
Last active February 9, 2021 20:16
Show Gist options
  • Save dongsupark/3fdefe1100aa614c932ccc74723d62cc to your computer and use it in GitHub Desktop.
Save dongsupark/3fdefe1100aa614c932ccc74723d62cc to your computer and use it in GitHub Desktop.
Dongsu's terraform config for hetzner cloud
module "hetzner-mycluster" {
#source = "git::https://github.com/kinvolk/typhoon//hetzner-cloud/container-linux/kubernetes?ref=alban/hetzner"
source = "git::git@github.com:kinvolk/spacecraft-typhoon//hetzner-cloud/container-linux/kubernetes?ref=alban/hetzner"
providers = {
aws = "aws.default"
local = "local.default"
null = "null.default"
template = "template.default"
tls = "tls.default"
}
# secrets
hcloud_token = "${file("~/.config/hcloud/token")}"
# The names of the public keys need to match thoses found in the Hetzner Cloud UI
hcloud_ssh_keys_names = [
"alban@kinvolk.io",
"dongsu@kinvolk.io",
"iago@kinvolk.io",
"michael@kinvolk.io",
]
ssh_authorized_keys = [
"ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAzKijAxvVnWGqgkpRaFHIKlhsFmNaWKFiq7GHn83dV5EyHKnv1qj9GlGJelDDK3fPTa9ovfNg5ADyCBwYdHPhzT5Ept5Z5Luw8unO5qmoi1itreHTuJ5mHoWUaI64GHtpPZVuMSC39fksFqyFSR5mdCxvbcKwkKDYdwj3cWd0eL2WDfCJUGNh739RnoEoUMBc0bIk5mtJ4X09J7rhfSrClhi9WH5Vlx5dLT6BXoINIVeb/LwtA+ogKM2SY8R0XY/FSLWrj+EG1oScVXuJhoHHjmRHWfBLh/NnKlyzY2iy5TOLrZ/EXEij/2u2kEFAgjM5+7MYGPqRX4gOCwxOZtSAfw== alban@kinvolk.io",
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDkSoWdKSI3orxNqTWdq8UNUM3LCNUWCdkNhRnp8xD4QKUoP4VPPR+Zf+6ZTbjiapnHsu4UgQ3tCcmBYNpwrhlqrjjvh5SyLmqkrWOjbYSw7MKIYcoMvjq+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IaWTIPFJxiWQsN4/PwD5712x+OLVFRNCsiD9Dlk+qyLYYM4pxe/LM1EganUDaHCiPvHAjCUdNbIRXSq+KD+eY/YrLBYi9ALKPiuTgkQ/Y+SAg/iWDONR6LqYPv/t7hBWiLW5BCQ2p1XEIuIUzFvRoAHxarbb6ntxidV2orKqqGTfo4pOzPplj5wPFXa6xe7aKtP2dtlpDWW+h9W/nn michael@kinvolk.io",
]
# cluster
cluster_name = "mycluster"
# machines
controller_names = [
"c1",
]
controller_domains = [
"c1.mycluster.nicht.fun",
]
worker_names = [
"w1",
"w2",
]
worker_domains = [
"w1.mycluster.nicht.fun",
"w2.mycluster.nicht.fun",
]
# DNS managed by AWS
dns_zone = "nicht.fun"
dns_zone_id = "Z3M9IWEGEMH8YE"
# bootkube
asset_dir = "/home/dpark/.secrets/clusters/mycluster"
networking = "flannel"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment