readiness probe to route traffic to leader replica only
@@ -100,6 +100,11 @@ spec:
image: matterlabs/server:${IMAGE_TAG}
imagePullPolicy: Always
resources: ${SERVER_CONTAINER_RESOURCES}
+ readinessProbe:
+ tcpSocket:
+ port: 3000
+ initialDelaySeconds: 5
+ periodSeconds: 100
ports:
- containerPort: 3000
- containerPort: 3030
