diff --git a/k8s/deployment.yaml b/k8s/deployment.yaml index 0b267a0..a985428 100644 --- a/k8s/deployment.yaml +++ b/k8s/deployment.yaml @@ -23,7 +23,7 @@ spec: - containerPort: 8000 env: - name: APP_VERSION - value: "latest" + value: "v2.0" resources: requests: {cpu: 50m, memory: 64Mi} limits: {cpu: 200m, memory: 128Mi} diff --git a/main.py b/main.py index 4d5e4a2..780ff66 100644 --- a/main.py +++ b/main.py @@ -8,7 +8,7 @@ app = FastAPI() def health(): return { "status": "ok", - "version": os.getenv("APP_VERSION", "dev"), + "version": os.getenv("deployment.yaml", "dev"), "timestamp": datetime.datetime.utcnow().isoformat() }