diff --git a/apps/teamspeak/teamspeak.yaml b/apps/teamspeak/teamspeak.yaml index 9fd5a82..8daecff 100644 --- a/apps/teamspeak/teamspeak.yaml +++ b/apps/teamspeak/teamspeak.yaml @@ -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