-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvalues.yaml
More file actions
270 lines (253 loc) · 8.49 KB
/
values.yaml
File metadata and controls
270 lines (253 loc) · 8.49 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
replicaCount: 1
workload:
kind: Deployment # Deployment or StatefulSet
nameOverride: ""
deploymentStrategy:
type: Recreate
statefulSet:
nameOverride: ""
serviceName: ""
podManagementPolicy: OrderedReady
updateStrategy: {}
volumeClaimTemplates: []
app:
name: tf2-merger
image:
repository: ghcr.io/udl-tf/tf2-image
tag: latest
pullPolicy: Always
containerPort: 28015
ports:
- name: game-udp
containerPort: 28015
protocol: UDP
env: []
command: []
args: []
stdin: false
tty: false
livenessProbe: {}
readinessProbe: {}
startupProbe: {}
resources: {}
securityContext: {}
extraVolumeMounts: []
lifecycle: {}
# Merger stitcher init container and watcher sidecar
# IMPORTANT: Both merger and watcher MUST run as root (runAsUser: 0)
# to properly chown files to the target UID/GID (default 1000:1000).
# Do not override securityContext to run as non-root or permissions will fail.
merger:
enabled: true
image:
repository: ghcr.io/udl-tf/tf2chart-merger
tag: latest
pullPolicy: Always
resources: {}
securityContext:
runAsUser: 0
runAsGroup: 0
runAsNonRoot: false
extraEnv: []
extraVolumeMounts: []
# Runtime decompression: paths to scan for .bz2 files during merge operations.
# When the watcher detects new files, it will decompress any .bz2 files found in these paths.
# IMPORTANT: Overlays referenced in these paths will automatically be mounted as writable
# for both the stitcher init container and watcher sidecar to allow decompression.
# Example: ["/mnt/overlays/maps", "/mnt/overlays/custom"]
decompressPaths: [] # e.g., ["/mnt/overlays/maps", "/mnt/overlays/custom"]
watcher:
enabled: true
image:
repository: ghcr.io/udl-tf/tf2chart-watcher
tag: latest
pullPolicy: Always
events:
- close_write
- create
- delete
- moved_to
- moved_from
- delete_self
- move_self
debounceSeconds: 2
pollIntervalSeconds: 10
watchPaths: []
watchParentDepth: 1 # Watch parent directories for git-sync atomic swaps
extraWatchPaths: [] # Additional paths to monitor beyond auto-detected overlays
# Limit the Go runtime to N OS threads (GOMAXPROCS). 0 = use all available CPUs.
# Set to 1 or 2 to cap CPU usage on servers where the watcher competes with the game.
maxProcs: 2
# Enable a pprof HTTP profiling server at this address, e.g. ":6060".
# Leave empty to disable. Use with kubectl port-forward for performance analysis.
pprofAddr: ":6060"
command: []
args: []
env: []
resources: {}
securityContext:
runAsUser: 0
runAsGroup: 0
runAsNonRoot: false
extraVolumeMounts: []
watchBase: true
initContainers:
pre: []
post: []
# Decompressor init container
# Scans base and overlay paths for .bz2 files, decompresses them, and removes the archives.
# This runs before the stitcher to ensure map files are decompressed before merging.
# IMPORTANT: Overlays listed in scanOverlays will automatically be mounted as writable
# for the decompressor init container to allow decompression.
decompressor:
enabled: true
image:
repository: ghcr.io/udl-tf/tf2chart-decompressor
tag: latest
pullPolicy: Always
scanBase: true # Scan the base path for .bz2 files
scanOverlays: [] # List of overlay names to scan (e.g., ["maps", "custom"])
# Decompression cache - stores decompressed files to avoid re-decompression on restarts
# When enabled, decompressed files are cached in a persistent volume.
# The cache is then mounted as an overlay layer that provides decompressed files.
# NOTE: Cache is added as the LAST overlay (lowest priority) so user overlays take precedence.
cache:
enabled: false # Enable caching for faster subsequent decompressions
type: pvc # "pvc" for PersistentVolumeClaim or "hostPath" for local directory
mountAsOverlay: true # Mount cache as an overlay layer (recommended)
overlayName: decomp-cache # Name of the overlay when mounted (must be unique)
overlayPriority: 100 # Lower number = higher priority in merge order
# PVC settings (when type: pvc)
size: 10Gi # Size of the cache volume
storageClassName: "" # Storage class name (empty = default)
accessModes:
- ReadWriteOnce
selector: {} # Label selector for PV binding
volumeName: "" # Specific PV to bind to
# HostPath settings (when type: hostPath)
hostPath: /var/lib/tf2/decomp-cache # Path on the host for cache storage
hostPathType: DirectoryOrCreate # Directory, DirectoryOrCreate, or ""
resources: {}
securityContext:
runAsUser: 0
runAsGroup: 0
runAsNonRoot: false
extraVolumeMounts: []
# Permissions init container
# IMPORTANT: This container MUST run as root (runAsUser: 0) to properly
# chown files. The securityContext is automatically set in the template.
# Do not disable runFirst/runLast if you have permission issues.
permissionsInit:
enabled: true
image: ghcr.io/udl-tf/tf2chart-permissions:latest
imagePullPolicy: Always
name: init-permissions
user: 1000
group: 1000
chmod: "775"
path: "" # Path to fix in runFirst phase (defaults to /mnt/base if empty)
volumeName: host-base
mountPath: /mnt/base
runFirst: true
runLast: true
postName: init-permissions-final
postPath: /tf
postMountPath: /tf
postVolume: view-layer
applyDuringMerge: true
applyPaths: [] # Paths to fix during merge (defaults to postPath if empty)
entrypointCopy:
enabled: true
name: init-entrypoint
sourcePath: /tf/entrypoint.sh
destinationPath: /tf/entrypoint.sh
chmod: "755"
image:
repository: ghcr.io/udl-tf/tf2-image
tag: latest
pullPolicy: Always
resources: {}
securityContext: {}
paths:
hostSource: /tf/standalone
hostPathType: Directory
containerTarget: /tf
# The additive overlay layers that are merged in order.
overlays:
- name: serverfiles
type: hostPath
path: /mnt/serverfiles
# subPath: base
# sourcePath: serverfiles/base
hostPathType: Directory
readOnly: true
# Writable passthrough directories that map directly to the base host path.
writablePaths:
- tf/logs
# - path: tf/tf/cfg
# template:
# overlay: serverfiles-base
# sourcePath: tf/tf/cfg
# clean: true
# - path: tf/tf/addons/sourcemod/configs/sourcebans
# overlay: serverfiles-runtime
# subPath: tf/tf/addons/sourcemod/configs/sourcebans
# - path: tf/uploads
# overlay: serverfiles-runtime
# subPath: tf/uploads
# sourceMount: /mnt/overlays/serverfiles-runtime
# Copy-only templates refresh a writable directory from an overlay snapshot on
# every merge run. This is helpful for configs that should start from a clean
# template and accept runtime edits without touching the original overlay.
# Set onlyOnInit: true to copy only during initial merge and skip watcher re-merges,
# allowing the TF2 server to modify files without them being overwritten.
#
# IMPORTANT: targetPath should be RELATIVE (no leading slash)
# IMPORTANT: When copying from base, omit 'overlay' field - sourceMount defaults to /mnt/base
copyTemplates: []
# Example 1: Copy from base path (paths.hostSource)
# When overlay and sourceMount are omitted, defaults to /mnt/base (your base path)
# - targetPath: tf/addons/sourcemod/configs/sourcebans # ✓ Relative path (no leading /)
# sourcePath: tf/test-two/sourcebans # Path within base (/tf/standalone/tf/test-two/sourcebans)
# cleanTarget: true
# targetMode: writable
# onlyOnInit: true # Skip copying during watcher re-merges
# Example 2: Copy from a named overlay
# - targetPath: tf/addons/sourcemod/configs/sourcebans
# overlay: serverfiles # Copy from the "serverfiles" overlay
# sourcePath: serverfiles/base/addons/sourcemod/configs/sourcebans
# cleanTarget: true
# targetMode: writable
# onlyOnInit: true
# Example 3: Explicit sourceMount (advanced)
# - targetPath: tf/custom
# sourceMount: /mnt/overlays/serverfiles-base # Explicit mount path
# sourcePath: custom
# cleanTarget: true
# targetMode: view # Copy to view layer (read-only merge)
hostNetwork: false
dnsPolicy: ""
serviceAccountName: ""
service:
enabled: true
type: ClusterIP
port: 28015
targetPort: 28015
ports:
- name: game-udp
port: 28015
targetPort: game-udp
protocol: UDP
nameOverride: ""
headless: false
clusterIP: ""
externalTrafficPolicy: ""
annotations: {}
podAnnotations: {}
podLabels: {}
podSecurityContext: {}
nodeSelector: {}
tolerations: []
affinity: {}
priorityClassName: ""
extraVolumes: []