diff --git a/app/main.py b/app/main.py index 6b922ac..59f7553 100644 --- a/app/main.py +++ b/app/main.py @@ -8,4 +8,8 @@ def root(): @app.get("/health") def health(): - return {"status": "ok"} \ No newline at end of file + return {"status": "ok"} + +@app.get("/info") +def info(): + return {"servis": "priprema-za-kolokvij", "verzija": "2.0"} diff --git a/k8s/deployment.yaml b/k8s/deployment.yaml index 62894d3..11a4356 100644 --- a/k8s/deployment.yaml +++ b/k8s/deployment.yaml @@ -15,7 +15,7 @@ spec: spec: containers: - name: priprema-za-kolokvij - image: git.fpmoz.sum.ba/mirko416/priprema-za-kolokvij:1.0 + image: git.fpmoz.sum.ba/mirko416/priprema-za-kolokvij:2.0 ports: - containerPort: 8000 resources: