From 638435873cdca9c9c0b9b702c0d02d79028faf28 Mon Sep 17 00:00:00 2001 From: "A. F. Dudley" Date: Thu, 22 Jan 2026 03:35:03 -0500 Subject: [PATCH] Add port 443 mapping for kind clusters with Caddy ingress Caddy provides automatic HTTPS with Let's Encrypt, but needs port 443 mapped from the kind container to the host. Previously only port 80 was mapped. Co-Authored-By: Claude Opus 4.5 --- stack_orchestrator/deploy/k8s/helpers.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/stack_orchestrator/deploy/k8s/helpers.py b/stack_orchestrator/deploy/k8s/helpers.py index 08806586..a125d4f5 100644 --- a/stack_orchestrator/deploy/k8s/helpers.py +++ b/stack_orchestrator/deploy/k8s/helpers.py @@ -308,11 +308,11 @@ def _generate_kind_port_mappings_from_services(parsed_pod_files): def _generate_kind_port_mappings(parsed_pod_files): port_definitions = [] - # For now we just map port 80 for the nginx ingress controller we install in kind - port_string = "80" - port_definitions.append( - f" - containerPort: {port_string}\n hostPort: {port_string}\n" - ) + # Map port 80 and 443 for the Caddy ingress controller (HTTPS support) + for port_string in ["80", "443"]: + port_definitions.append( + f" - containerPort: {port_string}\n hostPort: {port_string}\n" + ) return ( "" if len(port_definitions) == 0