Fix TeamSpeak license: use init container to copy into data volume (chown-safe)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user