mirror of
https://github.com/2martens/terraform.git
synced 2026-10-17 19:26:51 +02:00
Remove cluster
This commit is contained in:
+41
-41
@@ -22,44 +22,44 @@ locals {
|
|||||||
domain = "2martens.de"
|
domain = "2martens.de"
|
||||||
}
|
}
|
||||||
|
|
||||||
module "test_cluster" {
|
#module "test_cluster" {
|
||||||
source = "./modules/k8s-cluster"
|
# source = "./modules/k8s-cluster"
|
||||||
|
#
|
||||||
admin_ssh_key = data.hcloud_ssh_key.macos
|
# admin_ssh_key = data.hcloud_ssh_key.macos
|
||||||
admin_user = "2martensAdmin"
|
# admin_user = "2martensAdmin"
|
||||||
admin_email = "admin@2martens.de"
|
# admin_email = "admin@2martens.de"
|
||||||
terraform_public_ssh_key = var.terraform_public_ssh_key
|
# terraform_public_ssh_key = var.terraform_public_ssh_key
|
||||||
terraform_private_ssh_key = var.terraform_private_ssh_key
|
# terraform_private_ssh_key = var.terraform_private_ssh_key
|
||||||
basic_firewall_id = hcloud_firewall.basic-firewall.id
|
# basic_firewall_id = hcloud_firewall.basic-firewall.id
|
||||||
k8s_firewall_id = hcloud_firewall.k8s-firewall.id
|
# k8s_firewall_id = hcloud_firewall.k8s-firewall.id
|
||||||
locations = [{
|
# locations = [{
|
||||||
id = data.hcloud_location.falkenstein.id,
|
# id = data.hcloud_location.falkenstein.id,
|
||||||
name = data.hcloud_location.falkenstein.name,
|
# name = data.hcloud_location.falkenstein.name,
|
||||||
datacenter_name = data.hcloud_datacenter.falkenstein.name,
|
# datacenter_name = data.hcloud_datacenter.falkenstein.name,
|
||||||
network_zone = data.hcloud_location.falkenstein.network_zone
|
# network_zone = data.hcloud_location.falkenstein.network_zone
|
||||||
}, {
|
# }, {
|
||||||
id = data.hcloud_location.nuremberg.id,
|
# id = data.hcloud_location.nuremberg.id,
|
||||||
name = data.hcloud_location.nuremberg.name,
|
# name = data.hcloud_location.nuremberg.name,
|
||||||
datacenter_name = data.hcloud_datacenter.nuremberg.name,
|
# datacenter_name = data.hcloud_datacenter.nuremberg.name,
|
||||||
network_zone = data.hcloud_location.nuremberg.network_zone
|
# network_zone = data.hcloud_location.nuremberg.network_zone
|
||||||
}]
|
# }]
|
||||||
domain = local.domain
|
# domain = local.domain
|
||||||
network_id = hcloud_network.kubernetes-network.id
|
# network_id = hcloud_network.kubernetes-network.id
|
||||||
private_node_ips = [
|
# private_node_ips = [
|
||||||
cidrhost(hcloud_network_subnet.k8s-network-subnet.ip_range, 4),
|
# cidrhost(hcloud_network_subnet.k8s-network-subnet.ip_range, 4),
|
||||||
cidrhost(hcloud_network_subnet.k8s-network-subnet.ip_range, 5),
|
# cidrhost(hcloud_network_subnet.k8s-network-subnet.ip_range, 5),
|
||||||
cidrhost(hcloud_network_subnet.k8s-network-subnet.ip_range, 6)
|
# cidrhost(hcloud_network_subnet.k8s-network-subnet.ip_range, 6)
|
||||||
]
|
# ]
|
||||||
server_subnet_id = hcloud_network_subnet.k8s-network-subnet.id
|
# server_subnet_id = hcloud_network_subnet.k8s-network-subnet.id
|
||||||
cluster_name = "test"
|
# cluster_name = "test"
|
||||||
argocd_environment = "test"
|
# argocd_environment = "test"
|
||||||
number_nodes = 1
|
# number_nodes = 1
|
||||||
server_type = "cax21"
|
# server_type = "cax21"
|
||||||
image_name = "ubuntu-22.04"
|
# image_name = "ubuntu-22.04"
|
||||||
create_loadbalancer = false
|
# create_loadbalancer = false
|
||||||
loadbalancer_ip = cidrhost(hcloud_network_subnet.k8s-network-subnet.ip_range, 3)
|
# loadbalancer_ip = cidrhost(hcloud_network_subnet.k8s-network-subnet.ip_range, 3)
|
||||||
vault_service_principal = {
|
# vault_service_principal = {
|
||||||
client_id : var.vault_client_id
|
# client_id : var.vault_client_id
|
||||||
client_secret : var.vault_client_secret
|
# client_secret : var.vault_client_secret
|
||||||
}
|
# }
|
||||||
}
|
#}
|
||||||
Reference in New Issue
Block a user