diff --git a/stack_orchestrator/deploy/k8s/deploy_k8s.py b/stack_orchestrator/deploy/k8s/deploy_k8s.py index acf27f3e..d6836dac 100644 --- a/stack_orchestrator/deploy/k8s/deploy_k8s.py +++ b/stack_orchestrator/deploy/k8s/deploy_k8s.py @@ -223,7 +223,7 @@ class K8sDeployer(Deployer): self._create_deployment() use_tls = not self.is_kind() - certificate = self._find_certificate_for_host_name(self.spec.get_http_proxy()[0]["host-name"]) if use_tls else None + certificate = self._find_certificate_for_host_name(self.cluster_info.spec.get_http_proxy()[0]["host-name"]) if use_tls else None if opts.o.debug: if certificate: print(f"Using existing certificate: {certificate}")