fix: 修复chat服务端口配置和Jenkins流水线
- 修复默认values.yaml中的端口配置不一致问题 - 统一所有环境使用8012端口 - 启用probes健康检查配置 - 修改Jenkins流水线使用Nicolas_log分支 - 确保chat服务能正确监听8012端口并响应健康检查
This commit is contained in:
parent
ea44bbfef3
commit
fcead75d20
@ -3,7 +3,7 @@ library 'first-class-pipeline'
|
|||||||
executeFreeleapsPipeline {
|
executeFreeleapsPipeline {
|
||||||
serviceName = 'freeleaps'
|
serviceName = 'freeleaps'
|
||||||
environmentSlug = 'alpha'
|
environmentSlug = 'alpha'
|
||||||
serviceGitBranch = 'dev'
|
serviceGitBranch = 'Nicolas_log'
|
||||||
serviceGitRepo = "https://gitea.freeleaps.mathmast.com/products/freeleaps.git"
|
serviceGitRepo = "https://gitea.freeleaps.mathmast.com/products/freeleaps.git"
|
||||||
serviceGitRepoType = 'monorepo'
|
serviceGitRepoType = 'monorepo'
|
||||||
serviceGitCredentialsId = 'freeleaps-repos-gitea-credentails'
|
serviceGitCredentialsId = 'freeleaps-repos-gitea-credentails'
|
||||||
|
|||||||
@ -22,7 +22,7 @@ chat:
|
|||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: 8007
|
containerPort: 8012
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
@ -31,13 +31,30 @@ chat:
|
|||||||
limits:
|
limits:
|
||||||
cpu: "1"
|
cpu: "1"
|
||||||
memory: "1Gi"
|
memory: "1Gi"
|
||||||
# FIXME: Wait until the developers implements the probes APIs
|
probes:
|
||||||
probes: {}
|
liveness:
|
||||||
|
type: httpGet
|
||||||
|
config:
|
||||||
|
path: /api/_/livez
|
||||||
|
port: 8012
|
||||||
|
initialDelaySeconds: 30
|
||||||
|
periodSeconds: 10
|
||||||
|
timeoutSeconds: 5
|
||||||
|
failureThreshold: 3
|
||||||
|
readiness:
|
||||||
|
type: httpGet
|
||||||
|
config:
|
||||||
|
path: /api/_/readyz
|
||||||
|
port: 8012
|
||||||
|
initialDelaySeconds: 10
|
||||||
|
periodSeconds: 5
|
||||||
|
timeoutSeconds: 3
|
||||||
|
failureThreshold: 3
|
||||||
services:
|
services:
|
||||||
- name: chat-service
|
- name: chat-service
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
port: 8007
|
port: 8012
|
||||||
targetPort: 8007
|
targetPort: 8012
|
||||||
serviceMonitor:
|
serviceMonitor:
|
||||||
enabled: false
|
enabled: false
|
||||||
labels:
|
labels:
|
||||||
@ -55,7 +72,7 @@ chat:
|
|||||||
# SERVICE_API_ACCESS_HOST
|
# SERVICE_API_ACCESS_HOST
|
||||||
serviceApiAccessHost: "0.0.0.0"
|
serviceApiAccessHost: "0.0.0.0"
|
||||||
# SERVICE_API_ACCESS_PORT
|
# SERVICE_API_ACCESS_PORT
|
||||||
serviceApiAccessPort: "8013"
|
serviceApiAccessPort: "8012"
|
||||||
# MONGODB_NAME
|
# MONGODB_NAME
|
||||||
mongodbName: ""
|
mongodbName: ""
|
||||||
# MONGODB_URI
|
# MONGODB_URI
|
||||||
@ -107,7 +124,7 @@ chat:
|
|||||||
# METRICS_ENABLED
|
# METRICS_ENABLED
|
||||||
metricsEnabled: "false"
|
metricsEnabled: "false"
|
||||||
# PROBES_ENABLED
|
# PROBES_ENABLED
|
||||||
probesEnabled: "false"
|
probesEnabled: "true"
|
||||||
vpa:
|
vpa:
|
||||||
minAllowed:
|
minAllowed:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user