Fix TeamSpeak license: use init container to copy into data volume (chown-safe)

This commit is contained in:
Andrew M. Stoltz
2026-03-10 00:29:24 -05:00
parent 76d194bafb
commit b084bfc2a1

View File

@@ -59,6 +59,16 @@ spec:
labels: labels:
app: teamspeak app: teamspeak
spec: spec:
initContainers:
- name: copy-license
image: busybox:latest
command: ['sh', '-c', 'cp /license/licensekey.dat /data/licensekey.dat']
volumeMounts:
- name: teamspeak-data
mountPath: /data
- name: license
mountPath: /license
readOnly: true
containers: containers:
- name: teamspeak - name: teamspeak
image: teamspeak:latest image: teamspeak:latest
@@ -83,10 +93,6 @@ spec:
volumeMounts: volumeMounts:
- name: teamspeak-data - name: teamspeak-data
mountPath: /var/ts3server mountPath: /var/ts3server
- name: license
mountPath: /var/ts3server/licensekey.dat
subPath: licensekey.dat
readOnly: true
resources: resources:
requests: requests:
memory: 128Mi memory: 128Mi