Skip to content

Commit

Permalink
Merge pull request #12 from Sanim16/feat-new6
Browse files Browse the repository at this point in the history
update deployment
  • Loading branch information
Sanim16 authored Nov 13, 2024
2 parents 640e131 + 5078eb0 commit 4dd28a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cdk_new_app/cdk_new_app_stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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
}
}
Expand All @@ -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}}}}]}}]
}
}

Expand Down

0 comments on commit 4dd28a8

Please sign in to comment.