Change uid whisper translate 4

This commit is contained in:
Ruben Hensen
2025-03-01 16:16:23 +01:00
parent d26630130f
commit 4ea5a118c5
+23 -23
View File
@@ -22,11 +22,30 @@ spec:
labels: labels:
io.kompose.service: translate io.kompose.service: translate
spec: spec:
securityContext:
runAsUser: 1032
runAsGroup: 1032
containers: containers:
- env: - image: libretranslate/libretranslate:latest
securityContext:
runAsUser: 0
runAsGroup: 0
runAsNonRoot: false
livenessProbe:
exec:
command:
- ./venv/bin/python scripts/healthcheck.py
failureThreshold: 5
periodSeconds: 2
timeoutSeconds: 3
name: whisper-libretranslate
ports:
- containerPort: 5000
protocol: TCP
tty: true
volumeMounts:
- mountPath: /home/libretranslate/.local/share
name: translate-claim0
- mountPath: /home/libretranslate/.local/cache
name: translate-claim1
env:
- name: DB_PASS - name: DB_PASS
valueFrom: valueFrom:
configMapKeyRef: configMapKeyRef:
@@ -56,25 +75,6 @@ spec:
configMapKeyRef: configMapKeyRef:
key: WHISPER_MODELS key: WHISPER_MODELS
name: env name: env
image: libretranslate/libretranslate:latest
livenessProbe:
exec:
command:
- ./venv/bin/python scripts/healthcheck.py
failureThreshold: 5
periodSeconds: 2
timeoutSeconds: 3
name: whisper-libretranslate
ports:
- containerPort: 5000
protocol: TCP
tty: true
volumeMounts:
- mountPath: /home/libretranslate/.local/share
name: translate-claim0
- mountPath: /home/libretranslate/.local/cache
name: translate-claim1
restartPolicy: Always restartPolicy: Always
volumes: volumes:
- name: translate-claim0 - name: translate-claim0