mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-09-17 02:12:55 +02:00
Add whisper webui folder
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
labels:
|
||||
io.kompose.service: app-claim0
|
||||
name: app-claim0
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 100Mi
|
||||
@@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
labels:
|
||||
io.kompose.service: app-claim1
|
||||
name: app-claim1
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 100Mi
|
||||
@@ -0,0 +1,52 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
annotations:
|
||||
kompose.cmd: kompose convert
|
||||
kompose.version: 1.34.0 (cbf2835db)
|
||||
labels:
|
||||
io.kompose.service: app
|
||||
name: app
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
io.kompose.service: app
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
kompose.cmd: kompose convert
|
||||
kompose.version: 1.34.0 (cbf2835db)
|
||||
labels:
|
||||
io.kompose.service: app
|
||||
spec:
|
||||
containers:
|
||||
- command:
|
||||
- python
|
||||
- app.py
|
||||
- --server_port
|
||||
- "7860"
|
||||
- --server_name
|
||||
- 0.0.0.0
|
||||
image: jhj0517/whisper-webui:latest
|
||||
name: app
|
||||
ports:
|
||||
- containerPort: 7860
|
||||
protocol: TCP
|
||||
stdin: true
|
||||
tty: true
|
||||
volumeMounts:
|
||||
- mountPath: /Whisper-WebUI/models
|
||||
name: app-claim0
|
||||
- mountPath: /Whisper-WebUI/outputs
|
||||
name: app-claim1
|
||||
restartPolicy: Always
|
||||
volumes:
|
||||
- name: app-claim0
|
||||
persistentVolumeClaim:
|
||||
claimName: app-claim0
|
||||
- name: app-claim1
|
||||
persistentVolumeClaim:
|
||||
claimName: app-claim1
|
||||
@@ -0,0 +1,16 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
annotations:
|
||||
kompose.cmd: kompose convert
|
||||
kompose.version: 1.34.0 (cbf2835db)
|
||||
labels:
|
||||
io.kompose.service: app
|
||||
name: app
|
||||
spec:
|
||||
ports:
|
||||
- name: "7860"
|
||||
port: 7860
|
||||
targetPort: 7860
|
||||
selector:
|
||||
io.kompose.service: app
|
||||
@@ -0,0 +1,29 @@
|
||||
# services:
|
||||
# app:
|
||||
# build: .
|
||||
# image: jhj0517/whisper-webui:latest
|
||||
|
||||
# volumes:
|
||||
# # You can mount the container's volume paths to directory paths on your local machine.
|
||||
# # Models will be stored in the `./models' directory on your machine.
|
||||
# # Similarly, all output files will be stored in the `./outputs` directory.
|
||||
# - ./models:/Whisper-WebUI/models
|
||||
# - ./outputs:/Whisper-WebUI/outputs
|
||||
|
||||
# ports:
|
||||
# - "7860:7860"
|
||||
|
||||
# stdin_open: true
|
||||
# tty: true
|
||||
|
||||
# entrypoint: ["python", "app.py", "--server_port", "7860", "--server_name", "0.0.0.0",]
|
||||
|
||||
# # If you're not using nvidia GPU, Update device to match yours.
|
||||
# # See more info at : https://docs.docker.com/compose/compose-file/deploy/#driver
|
||||
# deploy:
|
||||
# resources:
|
||||
# reservations:
|
||||
# devices:
|
||||
# - driver: nvidia
|
||||
# count: all
|
||||
# capabilities: [ gpu ]
|
||||
Reference in New Issue
Block a user