diff --git a/qhub/template/stages/04-kubernetes-ingress/main.tf b/qhub/template/stages/04-kubernetes-ingress/main.tf index 7e1dc8eded..41891795af 100644 --- a/qhub/template/stages/04-kubernetes-ingress/main.tf +++ b/qhub/template/stages/04-kubernetes-ingress/main.tf @@ -11,4 +11,5 @@ module "kubernetes-ingress" { certificate-secret-name = var.certificate-secret-name load-balancer-annotations = var.load-balancer-annotations load-balancer-ip = var.load-balancer-ip + additional-arguments = var.additional-arguments } diff --git a/qhub/template/stages/04-kubernetes-ingress/modules/kubernetes/ingress/main.tf b/qhub/template/stages/04-kubernetes-ingress/modules/kubernetes/ingress/main.tf index 5fdede0790..a1525d24ee 100644 --- a/qhub/template/stages/04-kubernetes-ingress/modules/kubernetes/ingress/main.tf +++ b/qhub/template/stages/04-kubernetes-ingress/modules/kubernetes/ingress/main.tf @@ -260,7 +260,9 @@ resource "kubernetes_deployment" "main" { # Enable debug logging. Useful to work out why something might not be # working. Fetch logs of the pod. "--log.level=${var.loglevel}", - ], local.add-certificate + ], + local.add-certificate, + var.additional-arguments, ) port { diff --git a/qhub/template/stages/04-kubernetes-ingress/modules/kubernetes/ingress/variables.tf b/qhub/template/stages/04-kubernetes-ingress/modules/kubernetes/ingress/variables.tf index 392e9be9ce..26969cf8cd 100644 --- a/qhub/template/stages/04-kubernetes-ingress/modules/kubernetes/ingress/variables.tf +++ b/qhub/template/stages/04-kubernetes-ingress/modules/kubernetes/ingress/variables.tf @@ -71,3 +71,9 @@ variable "certificate-service" { type = string default = "self-signed" } + +variable "additional-arguments" { + description = "Additional command line arguments to supply to traefik ingress" + type = list(string) + default = [] +} diff --git a/qhub/template/stages/04-kubernetes-ingress/variables.tf b/qhub/template/stages/04-kubernetes-ingress/variables.tf index 645e216ed2..b32e291ec7 100644 --- a/qhub/template/stages/04-kubernetes-ingress/variables.tf +++ b/qhub/template/stages/04-kubernetes-ingress/variables.tf @@ -48,8 +48,16 @@ variable "load-balancer-annotations" { default = null } + variable "certificate-service" { description = "The certificate service to use" type = string default = "self-signed" } + + +variable "additional-arguments" { + description = "Additional command line arguments to supply to traefik ingress" + type = list(string) + default = [] +}