mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-09-17 02:12:55 +02:00
Change uid whisper translate 4
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user