From 5078eb02a9bc4837b7b045b62b83eed56b725207 Mon Sep 17 00:00:00 2001 From: Momoh Sani Musa Date: Wed, 13 Nov 2024 20:28:57 +0100 Subject: [PATCH] update deployment --- cdk_new_app/cdk_new_app_stack.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cdk_new_app/cdk_new_app_stack.py b/cdk_new_app/cdk_new_app_stack.py index 072fd06..139c394 100644 --- a/cdk_new_app/cdk_new_app_stack.py +++ b/cdk_new_app/cdk_new_app_stack.py @@ -85,7 +85,7 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None: "containers": [{ "name": "max-app", "image": "paulbouwer/hello-kubernetes:1.5", - "ports": [{"containerPort": 8080}], + "ports": [{"containerPort": 3000}], "resources": { "requests": { "memory": "1024Mi", @@ -110,7 +110,7 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None: "namespace": "maxapp"}, "spec": { "type": "NodePort", - "ports": [{"port": 8080, "targetPort": 8080}], + "ports": [{"port": 3000, "targetPort": 3000}], "selector": app_label } } @@ -127,7 +127,7 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None: }, "spec": { "ingressClassName": "alb", - "rules": [{"http": {"paths": [{"path": "/", "pathType": "Prefix", "backend": {"service": {"name": "hello-kubernetes", "port": {"number": 8080}}}}]}}] + "rules": [{"http": {"paths": [{"path": "/", "pathType": "Prefix", "backend": {"service": {"name": "hello-kubernetes", "port": {"number": 3000}}}}]}}] } }