Skip to content

Commit

Permalink
Adding option to supply additional arguments to ingress via (#1431)
Browse files Browse the repository at this point in the history
ingress.terraform_overrides.additional-arguments: [...]

See https://doc.traefik.io/traefik/reference/static-configuration/cli/
  • Loading branch information
costrouc authored Sep 9, 2022
1 parent c5dc6dd commit 9db27aa
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions qhub/template/stages/04-kubernetes-ingress/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
}
8 changes: 8 additions & 0 deletions qhub/template/stages/04-kubernetes-ingress/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
}

0 comments on commit 9db27aa

Please sign in to comment.