Adapt example configs to urban terror

This commit is contained in:
2025-05-06 23:23:40 +02:00
parent 21d1628b26
commit dd2c9160aa
3 changed files with 38 additions and 74 deletions

View File

@ -3,32 +3,20 @@ timeLimit: 15m
bot: bot:
minPlayers: 3 minPlayers: 3
game: game:
motd: "Welcome to Critical Stack" motd: "Welcome to my UrT Server"
type: FreeForAll type: FreeForAll
forceRespawn: false forceRespawn: false
inactivity: 10m inactivity: 10m
#password: "letmein" # password: "letmein"
quadFactor: 3
weaponRespawn: 3
server: server:
hostname: "quakekube" hostname: "quakekube"
maxClients: 16 maxClients: 16
password: "changeme" # password: "changeme"
commands: commands:
- addbot sarge 2 - addbot sarge 2
maps: maps:
- name: q3dm7 - name: ut4_uptown
type: FreeForAll type: FreeForAll
timeLimit: 10m timeLimit: 10m
- name: q3dm17 - name: ut4_swim
type: FreeForAll type: FreeForAll
- name: q3wctf1
type: CaptureTheFlag
captureLimit: 8
- name: q3tourney2
type: Tournament
- name: q3wctf3
type: CaptureTheFlag
captureLimit: 8
- name: ztn3tourney1
type: Tournament

View File

@ -1,16 +1,16 @@
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: quake name: urbanterror
spec: spec:
selector: selector:
matchLabels: matchLabels:
run: quake run: urbanterror
replicas: 1 replicas: 1
template: template:
metadata: metadata:
labels: labels:
run: quake run: urbanterror
annotations: annotations:
prometheus.io/scrape: 'true' prometheus.io/scrape: 'true'
prometheus.io/port: '8080' prometheus.io/port: '8080'
@ -22,7 +22,7 @@ spec:
- --config=/config/config.yaml - --config=/config/config.yaml
- --content-server=http://127.0.0.1:9090 - --content-server=http://127.0.0.1:9090
- --agree-eula - --agree-eula
image: docker.io/criticalstack/quake:latest image: gitea.bp99.eu/bzp99/urban-terror-server:latest
name: server name: server
ports: ports:
- containerPort: 8080 - containerPort: 8080
@ -32,36 +32,36 @@ spec:
initialDelaySeconds: 15 initialDelaySeconds: 15
periodSeconds: 5 periodSeconds: 5
volumeMounts: volumeMounts:
- name: quake3-server-config - name: server-config
mountPath: /config mountPath: /config
- name: quake3-content - name: content
mountPath: /assets mountPath: /assets
- command: - command:
- q3 - q3
- content - content
- --seed-content-url=http://content.quakejs.com - --seed-content-url=http://content.quakejs.com
image: docker.io/criticalstack/quake:latest image: gitea.bp99.eu/bzp99/urban-terror-server:latest
name: content-server name: content-server
ports: ports:
- containerPort: 9090 - containerPort: 9090
volumeMounts: volumeMounts:
- name: quake3-content - name: content
mountPath: /assets mountPath: /assets
volumes: volumes:
- name: quake3-server-config - name: server-config
configMap: configMap:
name: quake3-server-config name: server-config
- name: quake3-content - name: content
emptyDir: {} emptyDir: {}
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: quake name: urbanterror
spec: spec:
type: NodePort type: NodePort
selector: selector:
run: quake run: urbanterror
ports: ports:
- port: 8080 - port: 8080
targetPort: 8080 targetPort: 8080
@ -79,7 +79,7 @@ spec:
apiVersion: v1 apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
name: quake3-server-config name: server-config
data: data:
config.yaml: | config.yaml: |
fragLimit: 25 fragLimit: 25
@ -87,31 +87,19 @@ data:
bot: bot:
minPlayers: 3 minPlayers: 3
game: game:
motd: "Welcome to Critical Stack" motd: "Welcome to my Urban Terror server"
type: FreeForAll type: FreeForAll
forceRespawn: false forceRespawn: false
inactivity: 10m inactivity: 10m
quadFactor: 3
weaponRespawn: 3
server: server:
hostname: "quakekube" hostname: "quakekube"
maxClients: 12 maxClients: 12
password: "changeme" # password: "changeme"
commands: commands:
- addbot sarge 2 - addbot sarge 2
maps: maps:
- name: q3dm7 - name: ut4_uptown
type: FreeForAll type: FreeForAll
timeLimit: 10m timeLimit: 10m
- name: q3dm17 - name: ut4_swim
type: FreeForAll type: FreeForAll
- name: q3wctf1
type: CaptureTheFlag
captureLimit: 8
- name: q3tourney2
type: Tournament
- name: q3wctf3
type: CaptureTheFlag
captureLimit: 8
- name: ztn3tourney1
type: Tournament

View File

@ -2,7 +2,7 @@
apiVersion: v1 apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
name: quake3-server-config name: server-config
data: data:
config.yaml: | config.yaml: |
fragLimit: 25 fragLimit: 25
@ -10,39 +10,27 @@ data:
bot: bot:
minPlayers: 3 minPlayers: 3
game: game:
motd: "Welcome to Critical Stack" motd: "Welcome to my Urban Terror server"
type: FreeForAll type: FreeForAll
forceRespawn: false forceRespawn: false
inactivity: 10m inactivity: 10m
quadFactor: 3
weaponRespawn: 3
server: server:
hostname: "quakekube" hostname: "quakekube"
maxClients: 12 maxClients: 12
password: "changeme" # password: "changeme"
commands: commands:
- addbot sarge 2 - addbot sarge 2
maps: maps:
- name: q3dm7 - name: ut4_uptown
type: FreeForAll type: FreeForAll
timeLimit: 10m timeLimit: 10m
- name: q3dm17 - name: ut4_swim
type: FreeForAll type: FreeForAll
- name: q3wctf1
type: CaptureTheFlag
captureLimit: 8
- name: q3tourney2
type: Tournament
- name: q3wctf3
type: CaptureTheFlag
captureLimit: 8
- name: ztn3tourney1
type: Tournament
--- ---
apiVersion: "agones.dev/v1" apiVersion: "agones.dev/v1"
kind: Fleet kind: Fleet
metadata: metadata:
name: octops name: urbanterror
labels: labels:
cluster: gke-1.17 cluster: gke-1.17
region: us-east-1 region: us-east-1
@ -74,7 +62,7 @@ spec:
containers: containers:
- name: gameserver - name: gameserver
imagePullPolicy: Always imagePullPolicy: Always
image: octops/quake:latest image: gitea.bp99.eu/bzp99/urban-terror-server:latest
command: command:
- q3 - q3
- server - server
@ -98,13 +86,13 @@ spec:
memory: "2Gi" memory: "2Gi"
cpu: "1" cpu: "1"
volumeMounts: volumeMounts:
- name: quake3-server-config - name: server-config
mountPath: /config mountPath: /config
- name: quake3-content - name: content
mountPath: /assets mountPath: /assets
- name: content-server - name: content-server
imagePullPolicy: Always imagePullPolicy: Always
image: octops/quake:latest image: gitea.bp99.eu/bzp99/urban-terror-server:latest
command: command:
- q3 - q3
- content - content
@ -119,11 +107,11 @@ spec:
memory: "2Gi" memory: "2Gi"
cpu: "1" cpu: "1"
volumeMounts: volumeMounts:
- name: quake3-content - name: content
mountPath: /assets mountPath: /assets
volumes: volumes:
- name: quake3-server-config - name: server-config
configMap: configMap:
name: quake3-server-config name: server-config
- name: quake3-content - name: content
emptyDir: {} emptyDir: {}