Files
homelab/k8s/games/counter-strike-16/services.yaml
ab a37ccbe5ef
All checks were successful
Check with kubeconform / lint (push) Successful in 10s
Update k8s/games/counter-strike-16/services.yaml
2025-07-17 12:50:22 +00:00

44 lines
773 B
YAML

apiVersion: v1
kind: Service
metadata:
name: counter-strike-16
namespace: counter-strike
spec:
type: LoadBalancer
externalTrafficPolicy: Local
sessionAffinity: ClientIP
sessionAffinityConfig:
clientIP:
timeoutSeconds: 10800
selector:
app: counter-strike-16
ports:
- name: game-udp
port: 27015
targetPort: 27015
protocol: UDP
- name: game-tcp
port: 27015
targetPort: 27015
protocol: TCP
- name: rcon
port: 27020
targetPort: 27020
protocol: UDP
---
apiVersion: v1
kind: Service
metadata:
name: prom-a2s-exporter
labels:
app: counter-strike-16
spec:
selector:
app: counter-strike-16
ports:
- name: metrics
port: 9841
targetPort: 9841
protocol: TCP
type: ClusterIP