This commit is contained in:
2026-04-02 11:37:49 +00:00
parent 15da0e701d
commit 1b4d3d1e29
2 changed files with 46 additions and 4 deletions

View File

@@ -3,6 +3,26 @@ kind: Namespace
metadata:
name: graphviz
---
apiVersion: v1
kind: ConfigMap
metadata:
name: graphviz-nginx
namespace: graphviz
data:
default.conf: |
server {
listen 80;
listen [::]:80;
server_name _;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
}
---
apiVersion: apps/v1
kind: Deployment
metadata:
@@ -25,18 +45,28 @@ spec:
ports:
- name: http
containerPort: 80
volumeMounts:
- name: nginx-config
mountPath: /etc/nginx/conf.d/default.conf
subPath: default.conf
readinessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 30
scheme: HTTP
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 3
failureThreshold: 6
livenessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 60
scheme: HTTP
initialDelaySeconds: 15
periodSeconds: 20
timeoutSeconds: 3
failureThreshold: 6
resources:
requests:
cpu: 50m
@@ -44,6 +74,10 @@ spec:
limits:
cpu: 500m
memory: 512Mi
volumes:
- name: nginx-config
configMap:
name: graphviz-nginx
---
apiVersion: v1
kind: Service

View File

@@ -120,20 +120,28 @@ spec:
mountPath: /usr/share/tessdata
- name: pipeline
mountPath: /pipeline
startupProbe:
httpGet:
path: /
port: 8080
periodSeconds: 5
timeoutSeconds: 5
failureThreshold: 24
readinessProbe:
httpGet:
path: /
port: 8080
initialDelaySeconds: 20
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 6
livenessProbe:
httpGet:
path: /
port: 8080
initialDelaySeconds: 120
initialDelaySeconds: 90
periodSeconds: 20
timeoutSeconds: 5
failureThreshold: 6
resources:
requests:
cpu: "500m"