feat(multiplayer): wire allocator metrics discovery

This commit is contained in:
Josh Creek
2026-09-01 18:46:31 +01:00
parent 9a72dd5eab
commit 95e82cc719
5 changed files with 50 additions and 1 deletions
+15
View File
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: allocator
namespace: cosmic-clash
labels:
app.kubernetes.io/name: allocator
app.kubernetes.io/component: allocator
spec:
selector:
app.kubernetes.io/name: allocator
ports:
- name: metrics
port: 9091
targetPort: metrics
+1
View File
@@ -7,6 +7,7 @@ resources:
- network-policies.yaml
- control-plane-deployment.yaml
- control-plane-service.yaml
- allocator-service.yaml
- fleet.yaml
- fleet-autoscaler.yaml
- game-server-pdb.yaml
@@ -0,0 +1,20 @@
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: cosmic-clash-allocator
namespace: cosmic-clash
labels:
app.kubernetes.io/name: cosmic-clash
app.kubernetes.io/component: observability
spec:
selector:
matchLabels:
app.kubernetes.io/name: allocator
namespaceSelector:
matchNames:
- cosmic-clash
endpoints:
- port: metrics
path: /metrics
interval: 15s
scrapeTimeout: 5s