Support multiple NodePorts, static NodePort mapping, and add 'replicas' spec option #913

Merged
telackey merged 4 commits from telackey/nodeports into main 2024-08-09 02:32:07 +00:00
2 changed files with 2 additions and 1 deletions
Showing only changes of commit 6b711a0cac - Show all commits

View File

@ -92,7 +92,7 @@ class ClusterInfo:
if ":" in raw_port:
parts = raw_port.split(":")
if len(parts) != 2:
raise Error(f"Invalid port definition: {raw_port}")
raise Exception(f"Invalid port definition: {raw_port}")
node_port = int(parts[0])
pod_port = int(parts[1])
else:

View File

@ -16,6 +16,7 @@ from datetime import datetime, timezone
from pathlib import Path
from kubernetes import client, config
from typing import List
from stack_orchestrator import constants
from stack_orchestrator.deploy.deployer import Deployer, DeployerConfigGenerator