feat: verzija v2.0
This commit is contained in:
@@ -23,7 +23,7 @@ spec:
|
|||||||
- containerPort: 8000
|
- containerPort: 8000
|
||||||
env:
|
env:
|
||||||
- name: APP_VERSION
|
- name: APP_VERSION
|
||||||
value: "latest"
|
value: "v2.0"
|
||||||
resources:
|
resources:
|
||||||
requests: {cpu: 50m, memory: 64Mi}
|
requests: {cpu: 50m, memory: 64Mi}
|
||||||
limits: {cpu: 200m, memory: 128Mi}
|
limits: {cpu: 200m, memory: 128Mi}
|
||||||
|
|||||||
2
main.py
2
main.py
@@ -8,7 +8,7 @@ app = FastAPI()
|
|||||||
def health():
|
def health():
|
||||||
return {
|
return {
|
||||||
"status": "ok",
|
"status": "ok",
|
||||||
"version": os.getenv("APP_VERSION", "dev"),
|
"version": os.getenv("deployment.yaml", "dev"),
|
||||||
"timestamp": datetime.datetime.utcnow().isoformat()
|
"timestamp": datetime.datetime.utcnow().isoformat()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user