新增健康检查

This commit is contained in:
Sense T
2026-05-26 04:51:09 +00:00
parent e30f154af4
commit 689b62f836
3 changed files with 19 additions and 0 deletions
+16
View File
@@ -37,6 +37,22 @@ spec:
- name: gateway - name: gateway
#image: cr.wetofu.me/nousresearch/hermes-agent:v2026.5.16 #image: cr.wetofu.me/nousresearch/hermes-agent:v2026.5.16
image: image image: image
livenessProbe:
httpGet:
path: /health
port: 8642
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 1
failureThreshold: 3
timeoutSeconds: 5
readinessProbe:
httpGet:
path: /health
port: 8642
periodSeconds: 3
successThreshold: 1
timeoutSeconds: 5
ports: ports:
- containerPort: 8642 - containerPort: 8642
name: gateway name: gateway
+2
View File
@@ -15,6 +15,7 @@ secretGenerator:
- secrets/TELEGRAM_BOT_TOKEN - secrets/TELEGRAM_BOT_TOKEN
- secrets/DEEPSEEK_API_KEY - secrets/DEEPSEEK_API_KEY
- secrets/API_SERVER_KEY - secrets/API_SERVER_KEY
- secrets/SIYUAN_TOKEN
type: Opaque type: Opaque
configMapGenerator: configMapGenerator:
- name: hermes - name: hermes
@@ -22,3 +23,4 @@ configMapGenerator:
- config/GATEWAY_ALLOW_ALL_USERS - config/GATEWAY_ALLOW_ALL_USERS
- config/TELEGRAM_OBSERVE_UNMENTIONED_GROUP_MESSAGES - config/TELEGRAM_OBSERVE_UNMENTIONED_GROUP_MESSAGES
- config/TELEGRAM_REQUIRE_MENTION - config/TELEGRAM_REQUIRE_MENTION
- config/SIYUAN_URL
+1
View File
@@ -0,0 +1 @@
o9mxt18liiq5hr7i