BlueXIII's Blog

热爱技术,持续学习

0%

KubeSphere滚动更新

参考文档

配置健康测试端点

修改Nacos配置,在application-dev.yml中添加management.endpoint.health.show-details参数,注意低版本的SpringBoot中endpoint没有’s’

1
2
3
4
5
6
7
8
management:
endpoint:
health:
show-details: "ALWAYS"
endpoints:
web:
exposure:
include: '*'

健康测试:

1
2
curl http://10.133.0.63:30508/actuator/health/ping
{"status":"UP"}

修改K8S配置添加readinessProbe

1
2
3
4
5
6
7
readinessProbe:
httpGet:
scheme: HTTP
path: /actuator/health/ping
port: 4000
initialDelaySeconds: 10
periodSeconds: 5