# ============================================================================= # GAMILIT Backend - Kubernetes Service # ============================================================================= # Purpose: Exposes backend pods internally within the cluster # Type: ClusterIP (internal only, accessed via Ingress) # Port: 3006 # ============================================================================= apiVersion: v1 kind: Service metadata: name: gamilit-backend namespace: gamilit-production labels: app: gamilit component: backend tier: api annotations: service.beta.kubernetes.io/aws-load-balancer-backend-protocol: "http" service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout: "60" spec: type: ClusterIP sessionAffinity: None selector: app: gamilit component: backend tier: api ports: - name: http protocol: TCP port: 3006 # Service port targetPort: http # Container port name - name: metrics protocol: TCP port: 9090 targetPort: 9090 # Enable session affinity if needed (for sticky sessions) # sessionAffinity: ClientIP # sessionAffinityConfig: # clientIP: # timeoutSeconds: 10800