Fix TeamSpeak license: use init container to copy into data volume (chown-safe)
This commit is contained in:
@@ -59,6 +59,16 @@ spec:
|
||||
labels:
|
||||
app: teamspeak
|
||||
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:
|
||||
- name: teamspeak
|
||||
image: teamspeak:latest
|
||||
@@ -83,10 +93,6 @@ spec:
|
||||
volumeMounts:
|
||||
- name: teamspeak-data
|
||||
mountPath: /var/ts3server
|
||||
- name: license
|
||||
mountPath: /var/ts3server/licensekey.dat
|
||||
subPath: licensekey.dat
|
||||
readOnly: true
|
||||
resources:
|
||||
requests:
|
||||
memory: 128Mi
|
||||
|
||||
Reference in New Issue
Block a user