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: metadata:
name: graphviz 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 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
@@ -25,18 +45,28 @@ spec:
ports: ports:
- name: http - name: http
containerPort: 80 containerPort: 80
volumeMounts:
- name: nginx-config
mountPath: /etc/nginx/conf.d/default.conf
subPath: default.conf
readinessProbe: readinessProbe:
httpGet: httpGet:
path: / path: /
port: http port: http
initialDelaySeconds: 30 scheme: HTTP
initialDelaySeconds: 5
periodSeconds: 10 periodSeconds: 10
timeoutSeconds: 3
failureThreshold: 6
livenessProbe: livenessProbe:
httpGet: httpGet:
path: / path: /
port: http port: http
initialDelaySeconds: 60 scheme: HTTP
initialDelaySeconds: 15
periodSeconds: 20 periodSeconds: 20
timeoutSeconds: 3
failureThreshold: 6
resources: resources:
requests: requests:
cpu: 50m cpu: 50m
@@ -44,6 +74,10 @@ spec:
limits: limits:
cpu: 500m cpu: 500m
memory: 512Mi memory: 512Mi
volumes:
- name: nginx-config
configMap:
name: graphviz-nginx
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service

View File

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