Skip to content

Commit

Permalink
scale down fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sergelogvinov committed Aug 16, 2024
1 parent b037692 commit 4797ae6
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions hetzner/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ create-config: ## Genereate talos configs
talosctl --talosconfig _cfgs/talosconfig config endpoint ${ENDPOINT}

create-templates:
@echo 'podSubnets: "10.32.0.0/12,fd40:10:32::/96"' > _cfgs/tfstate.vars
@echo 'serviceSubnets: "10.200.0.0/22,fd40:10:200::/112"' >> _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::/108"' >> _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.clusterName' _cfgs/controlplane.yaml | awk '{ print "clusterName: "$$1}' >> _cfgs/tfstate.vars
Expand Down
1 change: 1 addition & 0 deletions hetzner/instances-controlplane.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ resource "hcloud_server" "controlplane" {
alias_ips = each.key == keys(local.controlplanes)[0] ? [local.ipv4_vip] : []
}

shutdown_before_deletion = true
lifecycle {
ignore_changes = [
network,
Expand Down
1 change: 1 addition & 0 deletions hetzner/instances-web.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ resource "hcloud_server" "web" {
ipv6_enabled = true
}

shutdown_before_deletion = true
lifecycle {
ignore_changes = [
image,
Expand Down
1 change: 1 addition & 0 deletions hetzner/instances-worker.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ resource "hcloud_server" "worker" {
ipv6_enabled = true
}

shutdown_before_deletion = true
lifecycle {
ignore_changes = [
image,
Expand Down
2 changes: 1 addition & 1 deletion hetzner/templates/controlplane.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ cluster:
externalCloudProvider:
enabled: true
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/_deployments/vars/local-path-storage-ns.yaml
- https://raw.githubusercontent.com/sergelogvinov/terraform-talos/main/_deployments/vars/local-path-storage-result.yaml
Expand Down
2 changes: 1 addition & 1 deletion hetzner/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ variable "instances" {
type = map(any)
default = {
"all" = {
version = "v1.30.2"
version = "v1.30.3"
},
"nbg1" = {
web_count = 0,
Expand Down

0 comments on commit 4797ae6

Please sign in to comment.