diff --git a/terraform/cloudflare.tf b/terraform/cloudflare.tf index b1457c1..f244bfe 100644 --- a/terraform/cloudflare.tf +++ b/terraform/cloudflare.tf @@ -21,6 +21,14 @@ resource "cloudflare_record" "argocd" { proxied = true } +resource "cloudflare_record" "daily-workout" { + zone_id = var.cloudflare_zone_id + name = "daily-workout" + value = "${var.cloudflare_tunnel_id}.cfargotunnel.com" + type = "CNAME" + proxied = true +} + resource "cloudflare_record" "faas" { zone_id = var.cloudflare_zone_id name = "faas" @@ -54,6 +62,10 @@ resource "cloudflare_tunnel_config" "auto_tunnel" { hostname = cloudflare_record.argocd.hostname service = "http://argocd-server.argocd.svc.cluster.local:80" } + ingress_rule { + hostname = cloudflare_record.daily-workout.hostname + service = "http://daily-workout:80" + } ingress_rule { service = "http_status:404" }