diff --git a/k8s/games/counter-strike-16/services.yaml b/k8s/games/counter-strike-16/services.yaml index ea9394d..5c53836 100644 --- a/k8s/games/counter-strike-16/services.yaml +++ b/k8s/games/counter-strike-16/services.yaml @@ -1,11 +1,15 @@ ---- apiVersion: v1 kind: Service metadata: name: counter-strike-16 + namespace: counter-strike spec: - type: NodePort - externalTrafficPolicy: Local + type: LoadBalancer + externalTrafficPolicy: Local + sessionAffinity: ClientIP + sessionAffinityConfig: + clientIP: + timeoutSeconds: 10800 selector: app: counter-strike-16 ports: @@ -13,22 +17,14 @@ spec: port: 27015 targetPort: 27015 protocol: UDP - nodePort: 30015 - name: game-tcp port: 27015 targetPort: 27015 protocol: TCP - nodePort: 30016 - name: rcon port: 27020 targetPort: 27020 protocol: UDP - nodePort: 30020 - - name: hltv - port: 26900 - targetPort: 26900 - protocol: UDP - nodePort: 30900 --- apiVersion: v1