diff --git a/stacks/python/3.0.0/devfile.yaml b/stacks/python/3.0.0/devfile.yaml index 0fd6702c..2a4b3ebf 100644 --- a/stacks/python/3.0.0/devfile.yaml +++ b/stacks/python/3.0.0/devfile.yaml @@ -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: