Skip to content

Commit

Permalink
Merge pull request #371 from ifeulner/autoscaler-adjustments
Browse files Browse the repository at this point in the history
Autoscaler adjustments
  • Loading branch information
mysticaltech authored Oct 25, 2022
2 parents fe8027a + b8fc251 commit c11ec69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions autoscaler-agents.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ locals {
ipv4_subnet_id = hcloud_network.k3s.id # for now we use the k3s network, as we cannot reference subnet-ids in autoscaler
snapshot_id = hcloud_snapshot.autoscaler_image[0].id
firewall_id = hcloud_firewall.k3s.id
cluster_name = var.use_cluster_name_in_node_name ? "${var.cluster_name}-" : ""
node_pools = var.autoscaler_nodepools
})
}
Expand Down
4 changes: 2 additions & 2 deletions templates/autoscaler.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,11 @@ spec:
memory: 300Mi
command:
- ./cluster-autoscaler
- --v=5
- --v=1
- --cloud-provider=hetzner
- --stderrthreshold=info
%{~ for pool in node_pools ~}
- --nodes=${pool.min_nodes}:${pool.max_nodes}:${pool.server_type}:${pool.location}:${pool.name}
- --nodes=${pool.min_nodes}:${pool.max_nodes}:${pool.server_type}:${pool.location}:${cluster_name}${pool.name}
%{~ endfor ~}
env:
- name: HCLOUD_TOKEN
Expand Down

0 comments on commit c11ec69

Please sign in to comment.