Skip to content

Commit 78d905c

Browse files
relax probe (#546)
auto merge
1 parent f01897b commit 78d905c

File tree

3 files changed

+19
-15
lines changed

3 files changed

+19
-15
lines changed

sdwebuiclient/Chart.yaml

100644100755
+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ appVersion: '1.7.0'
33
description: description
44
name: sdwebuiclient
55
type: application
6-
version: '1.0.2'
6+
version: '1.0.3'

sdwebuiclient/OlaresManifest.yaml

100644100755
+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
description: Stable Diffusion web UI.
66
icon: https://file.bttcdn.com/appstore/sdwebui/icon.png
77
appid: sdwebuiclient
8-
version: '1.0.2'
8+
version: '1.0.3'
99
title: SD Web UI
1010
categories:
1111
- Productivity
@@ -57,11 +57,11 @@ spec:
5757
- zh-CN
5858
doc: https://sdwebui.app/docs/overview/introduction
5959
requiredMemory: 32Mi
60-
limitedMemory: 256Mi
60+
limitedMemory: 1Gi
6161
requiredDisk: 56Mi
6262
limitedDisk: 1Gi
6363
requiredCpu: 10m
64-
limitedCpu: 100m
64+
limitedCpu: 1
6565
supportArch:
6666
- amd64
6767
options:

sdwebuiclient/templates/clientproxy.yaml

100644100755
+15-11
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,16 @@ spec:
7373
failureThreshold: 30
7474
periodSeconds: 10
7575
livenessProbe:
76-
httpGet:
77-
path: /
78-
port: 8080
76+
exec:
77+
command:
78+
- /bin/sh
79+
- -c
80+
- |
81+
http_code=$(curl -s -o /dev/null -w "%{http_code}" http://sdwebui.sdwebui-{{ .Values.admin }}:7860/health)
82+
[ $http_code -ge 403 ] && [ $http_code -lt 405 ]
7983
initialDelaySeconds: 30
8084
timeoutSeconds: 60
81-
periodSeconds: 60
85+
periodSeconds: 120
8286
successThreshold: 1
8387
failureThreshold: 10
8488
readinessProbe:
@@ -87,17 +91,17 @@ spec:
8791
- /bin/sh
8892
- -c
8993
- |
90-
http_code=$(curl -s -o /dev/null -w "%{http_code}" http://sdwebui.sdwebui-{{ .Values.admin }}:7860)
91-
[ $http_code -ge 200 ] && [ $http_code -lt 300 ]
94+
http_code=$(curl -s -o /dev/null -w "%{http_code}" http://sdwebui.sdwebui-{{ .Values.admin }}:7860/health)
95+
[ $http_code -ge 403 ] && [ $http_code -lt 405 ]
9296
initialDelaySeconds: 10
93-
timeoutSeconds: 2
94-
periodSeconds: 5
97+
timeoutSeconds: 30
98+
periodSeconds: 120
9599
successThreshold: 1
96-
failureThreshold: 3
100+
failureThreshold: 5
97101
resources:
98102
limits:
99-
cpu: 100m
100-
memory: 256Mi
103+
cpu: 1
104+
memory: 1Gi
101105
requests:
102106
cpu: 10m
103107
memory: 64Mi

0 commit comments

Comments
 (0)