mirror of
https://github.com/docling-project/docling-serve.git
synced 2025-11-29 00:23:36 +00:00
77 lines
1.6 KiB
YAML
77 lines
1.6 KiB
YAML
# This example deployment configures Docling Serve with a Route + Sticky sessions, a Service and cpu image
|
|
---
|
|
kind: Route
|
|
apiVersion: route.openshift.io/v1
|
|
metadata:
|
|
name: docling-serve
|
|
labels:
|
|
app: docling-serve
|
|
component: docling-serve-api
|
|
annotations:
|
|
haproxy.router.openshift.io/disable_cookies: "false" # this annotation enables the sticky sessions
|
|
spec:
|
|
path: /
|
|
to:
|
|
kind: Service
|
|
name: docling-serve
|
|
port:
|
|
targetPort: http
|
|
tls:
|
|
termination: edge
|
|
insecureEdgeTerminationPolicy: Redirect
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: docling-serve
|
|
labels:
|
|
app: docling-serve
|
|
component: docling-serve-api
|
|
spec:
|
|
ports:
|
|
- name: http
|
|
port: 5001
|
|
targetPort: http
|
|
selector:
|
|
app: docling-serve
|
|
component: docling-serve-api
|
|
---
|
|
kind: Deployment
|
|
apiVersion: apps/v1
|
|
metadata:
|
|
name: docling-serve
|
|
labels:
|
|
app: docling-serve
|
|
component: docling-serve-api
|
|
spec:
|
|
replicas: 3
|
|
selector:
|
|
matchLabels:
|
|
app: docling-serve
|
|
component: docling-serve-api
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: docling-serve
|
|
component: docling-serve-api
|
|
spec:
|
|
restartPolicy: Always
|
|
containers:
|
|
- name: api
|
|
resources:
|
|
limits:
|
|
cpu: 1
|
|
memory: 4Gi
|
|
requests:
|
|
cpu: 250m
|
|
memory: 1Gi
|
|
env:
|
|
- name: DOCLING_SERVE_ENABLE_UI
|
|
value: 'true'
|
|
ports:
|
|
- name: http
|
|
containerPort: 5001
|
|
protocol: TCP
|
|
imagePullPolicy: Always
|
|
image: 'ghcr.io/docling-project/docling-serve'
|