Files
hhhhsc701 924d977d6f 支持mineru npu处理 (#174)
* feature: unstructured支持简单pdf处理

* feature: update values.yaml to enhance ray-cluster configuration with security context, environment variables, and resource limits

* feature: update deploy.yaml and process.py for mineru server configuration and PDF processing enhancements

* feature: update deploy.yaml and process.py for mineru server configuration and PDF processing enhancements

* feature: improve PDF processing logic and update dependencies in process.py and pyproject.toml

* feature: improve PDF processing logic and update dependencies in process.py and pyproject.toml

* feature: update Dockerfile for improved package source mirrors and add mineru-npu to build targets
2025-12-17 16:31:06 +08:00

82 lines
1.8 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: datamate-mineru
labels:
app: datamate
tier: mineru
spec:
replicas: 1
selector:
matchLabels:
app: datamate
tier: mineru
template:
metadata:
labels:
app: datamate
tier: mineru
spec:
containers:
- name: mineru
image: datamate-mineru
imagePullPolicy: IfNotPresent
command:
- mineru-openai-server
args:
- --engine
- vllm
- --host
- 0.0.0.0
- --port
- "8000"
env:
- name: MINERU_MODEL_SOURCE
value: local
- name: MINERU_DEVICE_MODE
value: npu
- name: VLLM_WORKER_MULTIPROC_METHOD
value: spawn
ports:
- containerPort: 8000
resources:
limits:
cpu: 8
memory: 32Gi
huawei.com/Ascend910: 1
requests:
cpu: 100m
memory: 100Mi
huawei.com/Ascend910: 1
volumeMounts:
- name: dataset-volume
mountPath: /dataset
- name: log-volume
mountPath: /var/log/datamate/mineru
subPath: mineru
volumes:
- name: dataset-volume
persistentVolumeClaim:
claimName: datamate-dataset-pvc
- name: log-volume
persistentVolumeClaim:
claimName: datamate-log-pvc
---
apiVersion: v1
kind: Service
metadata:
name: datamate-mineru
labels:
app: datamate
tier: mineru
spec:
type: ClusterIP
ports:
- port: 8000
targetPort: 8000
protocol: TCP
selector:
app: datamate
tier: mineru