Skip to content
Snippets Groups Projects
Commit 61a391a1 authored by Rob Kooper's avatar Rob Kooper
Browse files

ability to specify entrypoints

parent 3e0aa897
No related branches found
No related tags found
No related merge requests found
...@@ -42,6 +42,7 @@ locals { ...@@ -42,6 +42,7 @@ locals {
ingress_controller = var.ingress_controller ingress_controller = var.ingress_controller
ingress_storageclass = var.ingress_storageclass ingress_storageclass = var.ingress_storageclass
traefik_dashboard = var.traefik_dashboard traefik_dashboard = var.traefik_dashboard
traefik2_ports = indent(14, yamlencode(var.traefik2_ports))
acme_staging = var.acme_staging acme_staging = var.acme_staging
acme_email = var.acme_email acme_email = var.acme_email
sealedsecrets_enabled = var.sealedsecrets_enabled sealedsecrets_enabled = var.sealedsecrets_enabled
......
...@@ -66,7 +66,12 @@ spec: ...@@ -66,7 +66,12 @@ spec:
class: ${ingress_controller} class: ${ingress_controller}
publicIP: ${floating_ip[0].public_ip} publicIP: ${floating_ip[0].public_ip}
privateIP: ${floating_ip[0].private_ip} privateIP: ${floating_ip[0].private_ip}
storageClass: ${ingress_storageclass} storageClass: "${ingress_storageclass}"
%{~ if ingress_controller == "traefik2" ~}
traefik2:
ports:
${traefik2_ports}
%{~ endif ~}
acme: acme:
staging: ${acme_staging} staging: ${acme_staging}
%{~ if (acme_staging) ~} %{~ if (acme_staging) ~}
......
...@@ -260,6 +260,12 @@ variable "traefik_use_certmanager" { ...@@ -260,6 +260,12 @@ variable "traefik_use_certmanager" {
default = false default = false
} }
variable "traefik2_ports" {
type = map
description = "Additional ports to add to traefik"
default = {}
}
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# LETS ENCRYPT # LETS ENCRYPT
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment