apiVersion: apps/v1 kind: Deployment metadata: name: turbo-race labels: app: turbo-race spec: replicas: 1 selector: matchLabels: app: turbo-race template: metadata: labels: app: turbo-race spec: containers: - name: turbo-race image: turbo-race:latest imagePullPolicy: IfNotPresent ports: - containerPort: 8080 env: - name: PORT value: "8080" - name: MAX_PLAYERS value: "20" - name: COUNTDOWN_S value: "30" - name: RACE_DURATION_S value: "90" - name: TRACK_LENGTH value: "23000" - name: ADMIN_TOKEN valueFrom: secretKeyRef: name: turbo-race-secret key: admin-token resources: requests: cpu: 100m memory: 64Mi limits: cpu: 300m memory: 160Mi readinessProbe: httpGet: path: /healthz port: 8080 initialDelaySeconds: 3 periodSeconds: 5 livenessProbe: httpGet: path: /healthz port: 8080 initialDelaySeconds: 5 periodSeconds: 10