Files
homelab/k8s/games/counter-strike-16/deployments.yaml

64 lines
1.4 KiB
YAML
Raw Normal View History

2025-07-17 01:15:35 +03:00
---
apiVersion: v1
kind: ConfigMap
metadata:
name: cs16-server-config
data:
MAXPLAYERS: "10"
START_MAP: "fy_pool_day"
2025-07-17 01:19:47 +03:00
SERVER_NAME: "GEYMERSKIY SOYUZ"
2025-07-17 01:15:35 +03:00
START_MONEY: "1000"
BUY_TIME: "0.25"
FRIENDLY_FIRE: "1"
SERVER_PASSWORD: ""
RCON_PASSWORD: ""
ADMIN_STEAM: "0:0:27591350"
RESTART_ON_FAIL: "true"
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: counter-strike-16
labels:
app: counter-strike-16
spec:
selector:
matchLabels:
app: counter-strike-16
replicas: 1
strategy:
type: Recreate
template:
metadata:
labels:
app: counter-strike-16
spec:
nodeSelector:
kubernetes.io/hostname: master.tail2fe2d.ts.net
terminationGracePeriodSeconds: 10
containers:
- name: counter-strike-16
image: 'kingk0der/counter-strike-1.6:latest'
args:
- +log
envFrom:
- configMapRef:
name: cs16-server-config
resources:
limits:
memory: 1Gi
#cpu: 1
requests:
memory: 512Mi
#cpu: 100m
ports:
- containerPort: 26900
protocol: UDP
- containerPort: 27020
protocol: UDP
- containerPort: 27015
protocol: UDP
- containerPort: 27015
protocol: TCP