forked from criticalstack/quake-kube
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.yaml
More file actions
123 lines (123 loc) · 2.75 KB
/
example.yaml
File metadata and controls
123 lines (123 loc) · 2.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
apiVersion: v1
kind: ConfigMap
metadata:
name: quake3-server-config
data:
config.yaml: |
fragLimit: 25
timeLimit: 15m
bot:
minPlayers: 3
game:
motd: "Welcome to Local Quake-Kube Testing"
type: FreeForAll
forceRespawn: false
inactivity: 10m
quadFactor: 3
weaponRespawn: 3
server:
hostname: "quakekube-local"
maxClients: 12
password: "changeme"
maps:
- name: q3dm7
type: FreeForAll
- name: q3dm17
type: FreeForAll
- name: q3wctf1
type: CaptureTheFlag
captureLimit: 8
- name: q3tourney2
type: Tournament
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: quake-kube
spec:
replicas: 1
selector:
matchLabels:
run: quake-kube
template:
metadata:
labels:
run: quake-kube
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "8080"
spec:
containers:
- name: server
image: docker.io/grahamplata/quake:latest
imagePullPolicy: Always
command:
- q3
- server
- --config=/config/config.yaml
- --agree-eula
- --assets-dir=/assets
- --content-server=http://127.0.0.1:9090
ports:
- containerPort: 8080
protocol: TCP
name: http
- containerPort: 27960
protocol: UDP
name: game
readinessProbe:
tcpSocket:
port: 8080
initialDelaySeconds: 15
periodSeconds: 5
volumeMounts:
- name: quake3-server-config
mountPath: /config
- name: quake3-content
mountPath: /assets
- name: content-server
image: docker.io/grahamplata/quake:latest
imagePullPolicy: Always
command:
- q3
- content
- --addr=:9090
- --assets-dir=/assets
ports:
- containerPort: 9090
protocol: TCP
name: content
volumeMounts:
- name: quake3-content
mountPath: /assets
volumes:
- name: quake3-server-config
configMap:
name: quake3-server-config
- name: quake3-content
emptyDir: {}
---
apiVersion: v1
kind: Service
metadata:
name: quake-kube
spec:
type: NodePort
selector:
run: quake-kube
ports:
- port: 8080
targetPort: 8080
nodePort: 30001
protocol: TCP
name: client
- port: 27960
targetPort: 27960
nodePort: 30003
protocol: UDP
name: game
- port: 9090
targetPort: 9090
nodePort: 30002
protocol: TCP
name: content