scale down fixes

This commit is contained in:
Serge Logvinov
2024-08-16 12:09:29 +03:00
parent b037692727
commit 4797ae6210
6 changed files with 7 additions and 4 deletions

View File

@@ -24,8 +24,8 @@ create-config: ## Genereate talos configs
talosctl --talosconfig _cfgs/talosconfig config endpoint ${ENDPOINT} talosctl --talosconfig _cfgs/talosconfig config endpoint ${ENDPOINT}
create-templates: create-templates:
@echo 'podSubnets: "10.32.0.0/12,fd40:10:32::/96"' > _cfgs/tfstate.vars @echo 'podSubnets: "10.32.0.0/12,fd40:10:32::/64"' > _cfgs/tfstate.vars
@echo 'serviceSubnets: "10.200.0.0/22,fd40:10:200::/112"' >> _cfgs/tfstate.vars @echo 'serviceSubnets: "10.200.0.0/22,fd40:10:200::/108"' >> _cfgs/tfstate.vars
@echo 'apiDomain: api.cluster.local' >> _cfgs/tfstate.vars @echo 'apiDomain: api.cluster.local' >> _cfgs/tfstate.vars
@yq eval '.cluster.network.dnsDomain' _cfgs/controlplane.yaml | awk '{ print "domain: "$$1}' >> _cfgs/tfstate.vars @yq eval '.cluster.network.dnsDomain' _cfgs/controlplane.yaml | awk '{ print "domain: "$$1}' >> _cfgs/tfstate.vars
@yq eval '.cluster.clusterName' _cfgs/controlplane.yaml | awk '{ print "clusterName: "$$1}' >> _cfgs/tfstate.vars @yq eval '.cluster.clusterName' _cfgs/controlplane.yaml | awk '{ print "clusterName: "$$1}' >> _cfgs/tfstate.vars

View File

@@ -37,6 +37,7 @@ resource "hcloud_server" "controlplane" {
alias_ips = each.key == keys(local.controlplanes)[0] ? [local.ipv4_vip] : [] alias_ips = each.key == keys(local.controlplanes)[0] ? [local.ipv4_vip] : []
} }
shutdown_before_deletion = true
lifecycle { lifecycle {
ignore_changes = [ ignore_changes = [
network, network,

View File

@@ -46,6 +46,7 @@ resource "hcloud_server" "web" {
ipv6_enabled = true ipv6_enabled = true
} }
shutdown_before_deletion = true
lifecycle { lifecycle {
ignore_changes = [ ignore_changes = [
image, image,

View File

@@ -46,6 +46,7 @@ resource "hcloud_server" "worker" {
ipv6_enabled = true ipv6_enabled = true
} }
shutdown_before_deletion = true
lifecycle { lifecycle {
ignore_changes = [ ignore_changes = [
image, image,

View File

@@ -123,7 +123,7 @@ cluster:
externalCloudProvider: externalCloudProvider:
enabled: true enabled: true
manifests: manifests:
- https://raw.githubusercontent.com/sergelogvinov/terraform-talos/main/hetzner/deployments/talos-cloud-controller-manager-result.yaml # - https://raw.githubusercontent.com/sergelogvinov/terraform-talos/main/hetzner/deployments/talos-cloud-controller-manager-result.yaml
- https://raw.githubusercontent.com/sergelogvinov/terraform-talos/main/hetzner/deployments/hcloud-cloud-controller-manager-result.yaml - https://raw.githubusercontent.com/sergelogvinov/terraform-talos/main/hetzner/deployments/hcloud-cloud-controller-manager-result.yaml
- https://raw.githubusercontent.com/sergelogvinov/terraform-talos/main/_deployments/vars/local-path-storage-ns.yaml - https://raw.githubusercontent.com/sergelogvinov/terraform-talos/main/_deployments/vars/local-path-storage-ns.yaml
- https://raw.githubusercontent.com/sergelogvinov/terraform-talos/main/_deployments/vars/local-path-storage-result.yaml - https://raw.githubusercontent.com/sergelogvinov/terraform-talos/main/_deployments/vars/local-path-storage-result.yaml

View File

@@ -84,7 +84,7 @@ variable "instances" {
type = map(any) type = map(any)
default = { default = {
"all" = { "all" = {
version = "v1.30.2" version = "v1.30.3"
}, },
"nbg1" = { "nbg1" = {
web_count = 0, web_count = 0,