Skip to content

Commit

Permalink
add TLS certificates integration to traefik
Browse files Browse the repository at this point in the history
  • Loading branch information
patriciareinoso committed Nov 18, 2024
1 parent c6c25df commit e2f60f6
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions modules/sdcore-control-plane-k8s/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,20 @@ resource "juju_integration" "nms-certificates" {
}
}

resource "juju_integration" "traefik-certificates" {
model = data.juju_model.sdcore.name

application {
name = module.traefik.app_name
endpoint = module.traefik.requires.certificates
}

application {
name = module.self-signed-certificates.app_name
endpoint = module.self-signed-certificates.certificates_endpoint
}
}

# Integrations for `ingress` endpoint

resource "juju_integration" "nms-ingress" {
Expand Down
14 changes: 14 additions & 0 deletions modules/sdcore-k8s/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,20 @@ resource "juju_integration" "nms-certificates" {
}
}

resource "juju_integration" "traefik-certificates" {
model = data.juju_model.sdcore.name

application {
name = module.traefik.app_name
endpoint = module.traefik.requires.certificates
}

application {
name = module.self-signed-certificates.app_name
endpoint = module.self-signed-certificates.certificates_endpoint
}
}

# Integrations for `ingress` endpoint

resource "juju_integration" "nms-ingress" {
Expand Down

0 comments on commit e2f60f6

Please sign in to comment.