From 1c21167896d2c04a3c8db9f599a7ab97fc42bd7c Mon Sep 17 00:00:00 2001 From: Ashwaq Reheman <80192952+ashwaq06@users.noreply.github.com> Date: Sun, 26 Nov 2023 17:28:12 +0530 Subject: [PATCH 1/2] Update devfile.yaml --- stacks/python/3.0.0/devfile.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stacks/python/3.0.0/devfile.yaml b/stacks/python/3.0.0/devfile.yaml index 0fd6702c..f450a97e 100644 --- a/stacks/python/3.0.0/devfile.yaml +++ b/stacks/python/3.0.0/devfile.yaml @@ -29,7 +29,7 @@ components: mountSources: true endpoints: - name: http-python - targetPort: 8080 + targetPort: 8081 - exposure: none name: debug targetPort: 5858 From 2dc11f75bee0a2392b62ba9867f5287f05ea46f6 Mon Sep 17 00:00:00 2001 From: ashwaq06 Date: Mon, 4 Dec 2023 20:56:58 +0530 Subject: [PATCH 2/2] Signed-off-by: Ashwaq Reheman <80192952+ashwaq06@users.noreply.github.com> --- stacks/python/3.0.0/devfile.yaml | 6 +++--- stacks/python/3.0.0/docker/Dockerfile | 4 ++-- stacks/python/3.0.0/kubernetes/deploy.yaml | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/stacks/python/3.0.0/devfile.yaml b/stacks/python/3.0.0/devfile.yaml index f450a97e..2a4b3ebf 100644 --- a/stacks/python/3.0.0/devfile.yaml +++ b/stacks/python/3.0.0/devfile.yaml @@ -29,7 +29,7 @@ components: mountSources: true endpoints: - name: http-python - targetPort: 8081 + targetPort: 8080 - exposure: none name: debug targetPort: 5858 @@ -47,8 +47,8 @@ components: kubernetes: uri: kubernetes/deploy.yaml endpoints: - - name: http-8081 - targetPort: 8081 + - name: http-8080 + targetPort: 8080 commands: - id: pip-install-requirements exec: diff --git a/stacks/python/3.0.0/docker/Dockerfile b/stacks/python/3.0.0/docker/Dockerfile index f2e07bfa..8a9713ee 100644 --- a/stacks/python/3.0.0/docker/Dockerfile +++ b/stacks/python/3.0.0/docker/Dockerfile @@ -1,8 +1,8 @@ FROM registry.access.redhat.com/ubi9/python-39:latest # By default, listen on port 8081 -EXPOSE 8081/tcp -ENV FLASK_PORT=8081 +EXPOSE 8080/tcp +ENV FLASK_PORT=8080 # Set the working directory in the container WORKDIR /projects diff --git a/stacks/python/3.0.0/kubernetes/deploy.yaml b/stacks/python/3.0.0/kubernetes/deploy.yaml index e981eee3..fd60c131 100644 --- a/stacks/python/3.0.0/kubernetes/deploy.yaml +++ b/stacks/python/3.0.0/kubernetes/deploy.yaml @@ -4,10 +4,10 @@ metadata: name: my-python spec: ports: - - name: http-8081 - port: 8081 + - name: http-8080 + port: 8080 protocol: TCP - targetPort: 8081 + targetPort: 8080 selector: app: python-app --- @@ -30,7 +30,7 @@ spec: image: python-image:latest ports: - name: http - containerPort: 8081 + containerPort: 8080 protocol: TCP resources: requests: