Introduce room assignment logic based on POD_NAME and TOTAL_REPLICAS, enable selective handling for game.join and score.submit events, and update environment configurations.
All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 2m28s
All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 2m28s
This commit is contained in:
@@ -27,6 +27,12 @@ spec:
|
||||
value: "redis:6379"
|
||||
- name: NATS_URL
|
||||
value: "nats://nats:4222"
|
||||
- name: TOTAL_REPLICAS
|
||||
value: "2"
|
||||
- name: POD_NAME
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.name
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
|
||||
Reference in New Issue
Block a user