From e2f60f6aaff16bbc55a7b8f92326b4c6cd11c396 Mon Sep 17 00:00:00 2001 From: Patricia Reinoso Date: Mon, 18 Nov 2024 09:32:22 +0000 Subject: [PATCH] add TLS certificates integration to traefik --- modules/sdcore-control-plane-k8s/main.tf | 14 ++++++++++++++ modules/sdcore-k8s/main.tf | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/modules/sdcore-control-plane-k8s/main.tf b/modules/sdcore-control-plane-k8s/main.tf index dfdb46b..3a32100 100644 --- a/modules/sdcore-control-plane-k8s/main.tf +++ b/modules/sdcore-control-plane-k8s/main.tf @@ -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" { diff --git a/modules/sdcore-k8s/main.tf b/modules/sdcore-k8s/main.tf index 09b26d7..c55cfe5 100644 --- a/modules/sdcore-k8s/main.tf +++ b/modules/sdcore-k8s/main.tf @@ -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" {