Skip to content

Commit

Permalink
applying firewall to autoscaler nodes now, too.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ingo Feulner committed Oct 23, 2022
1 parent a98a64c commit 02718de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 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 {
ssh_key = local.hcloud_ssh_key_id
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
node_pools = var.autoscaler_nodepools
})
}
Expand Down
2 changes: 2 additions & 0 deletions templates/autoscaler.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ spec:
value: '${ipv4_subnet_id}'
- name: HCLOUD_IMAGE
value: '${snapshot_id}'
- name: HCLOUD_FIREWALL
value: '${firewall_id}'
volumeMounts:
- name: ssl-certs
mountPath: /etc/ssl/certs
Expand Down

0 comments on commit 02718de

Please sign in to comment.