From 8a44ddb0f8926969de2fe9855de7f98a068e3d2a Mon Sep 17 00:00:00 2001 From: Harisathwik <34621451+Harisathwik@users.noreply.github.com> Date: Tue, 25 Jul 2023 17:34:39 +0530 Subject: [PATCH] Update deployment.yaml --- deployment.yaml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/deployment.yaml b/deployment.yaml index 1576399..16379a7 100644 --- a/deployment.yaml +++ b/deployment.yaml @@ -1,9 +1,9 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: streamlit-app-deployment + name: streamlit-app spec: - replicas: 3 # Number of replicas (pods) to run + replicas: 1 selector: matchLabels: app: streamlit-app @@ -13,7 +13,10 @@ spec: app: streamlit-app spec: containers: - - name: streamlit-app-container - image: harisathwik/streamlit_app:v1 # Replace with your actual container image URL - ports: - - containerPort: 8501 + - name: streamlit-app + image: harisathwik/streamlit_app:${{ github.sha }} + ports: + - containerPort: 8501 + env: + - name: PUBLIC_URL + value: "http://localhost:8501" # Change the port to match your Streamlit app port