This commit is contained in:
21
k8s/games/counter-strike-16/app.yaml
Normal file
21
k8s/games/counter-strike-16/app.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: counter-strike-16
|
||||
namespace: argocd
|
||||
spec:
|
||||
project: games
|
||||
destination:
|
||||
namespace: counter-strike
|
||||
server: https://kubernetes.default.svc
|
||||
source:
|
||||
repoURL: ssh://git@gt.hexor.cy:30022/ab/homelab.git
|
||||
targetRevision: HEAD
|
||||
path: k8s/games/counter-strike-16
|
||||
syncPolicy:
|
||||
automated:
|
||||
selfHeal: true
|
||||
prune: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
|
58
k8s/games/counter-strike-16/deployments.yaml
Normal file
58
k8s/games/counter-strike-16/deployments.yaml
Normal file
@@ -0,0 +1,58 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: cs16-server-config
|
||||
data:
|
||||
MAXPLAYERS: "10"
|
||||
START_MAP: "fy_pool_day"
|
||||
SERVER_NAME: "GEYMERKIY SOYUZ"
|
||||
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:
|
||||
- name: game
|
||||
containerPort: 27015
|
||||
protocol: TCP
|
8
k8s/games/counter-strike-16/kustomization.yaml
Normal file
8
k8s/games/counter-strike-16/kustomization.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- app.yaml
|
||||
- deployments.yaml
|
||||
- services.yaml
|
||||
|
13
k8s/games/counter-strike-16/services.yaml
Normal file
13
k8s/games/counter-strike-16/services.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: counter-strike-16
|
||||
spec:
|
||||
type: LoadBalancer
|
||||
ports:
|
||||
- port: 30566
|
||||
targetPort: 27015
|
||||
selector:
|
||||
app: counter-strike-16
|
||||
|
Reference in New Issue
Block a user