From 1b4d3d1e29701d9f88b8a9e19a07238bf80e2a1b Mon Sep 17 00:00:00 2001 From: shodan Date: Thu, 2 Apr 2026 11:37:49 +0000 Subject: [PATCH] . --- graphviz/graphviz.yaml | 38 ++++++++++++++++++++++++++++++++++++-- stirling/stirling.yaml | 12 ++++++++++-- 2 files changed, 46 insertions(+), 4 deletions(-) diff --git a/graphviz/graphviz.yaml b/graphviz/graphviz.yaml index d241a07..12c2de7 100644 --- a/graphviz/graphviz.yaml +++ b/graphviz/graphviz.yaml @@ -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 diff --git a/stirling/stirling.yaml b/stirling/stirling.yaml index bc61afb..60120ad 100644 --- a/stirling/stirling.yaml +++ b/stirling/stirling.yaml @@ -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"