mirror of
https://github.com/apricote/home-cloud.git
synced 2026-01-13 21:11:02 +00:00
feat: reuse loadbalancer for ingress
This commit is contained in:
parent
9e528c9b7b
commit
da1b4c9082
8 changed files with 65 additions and 10 deletions
|
|
@ -44,3 +44,19 @@ resource "hcloud_rdns" "k3s" {
|
|||
ip_address = hcloud_load_balancer.k3s.ipv4
|
||||
dns_ptr = var.domain
|
||||
}
|
||||
|
||||
### LB Ingress
|
||||
|
||||
resource "hcloud_load_balancer_service" "ingress_https" {
|
||||
load_balancer_id = hcloud_load_balancer.k3s.id
|
||||
protocol = "tcp"
|
||||
listen_port = 443
|
||||
destination_port = 32443
|
||||
}
|
||||
|
||||
resource "hcloud_load_balancer_service" "ingress_http" {
|
||||
load_balancer_id = hcloud_load_balancer.k3s.id
|
||||
protocol = "tcp"
|
||||
listen_port = 80
|
||||
destination_port = 32080
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue