aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--backend/routes/index.py8
-rw-r--r--deployment.yaml2
2 files changed, 8 insertions, 2 deletions
diff --git a/backend/routes/index.py b/backend/routes/index.py
index 2551c58..207c36a 100644
--- a/backend/routes/index.py
+++ b/backend/routes/index.py
@@ -1,6 +1,8 @@
"""
Index route for the forms API.
"""
+import platform
+
from pydantic import BaseModel
from pydantic.fields import Field
from spectree import Response
@@ -23,6 +25,9 @@ class IndexResponse(BaseModel):
sha: str = Field(
description="Current release Git SHA in production."
)
+ node: str = Field(
+ description="The node that processed the request."
+ )
class IndexRoute(Route):
@@ -46,7 +51,8 @@ class IndexRoute(Route):
"user": {
"authenticated": False
},
- "sha": GIT_SHA
+ "sha": GIT_SHA,
+ "node": platform.uname().node
}
if request.user.is_authenticated:
diff --git a/deployment.yaml b/deployment.yaml
index 19a074e..fc5719e 100644
--- a/deployment.yaml
+++ b/deployment.yaml
@@ -3,7 +3,7 @@ kind: Deployment
metadata:
name: forms-backend
spec:
- replicas: 1
+ replicas: 2
selector:
matchLabels:
app: forms-backend