为什么当我指定 https 时,hashicorpVault 的 kubernetes 就绪探针会命中 http?
我的就绪探针指定 HTTPS 和 8200 作为检查我的 hashcorpVault pod 的端口。
readinessProbe:
httpGet:
scheme: HTTPS
path: '/v1/sys/health?activecode=200'
port: 8200
一旦 pod 运行 kubectl describe pod 就会显示这一点
Readiness probe failed: Error checking seal status: Error making API request.
URL: GET http://127.0.0.1:8200/v1/sys/seal-status
Code: 400. Raw Message:
Client sent an HTTP request to an HTTPS server.
My readiness probe specifies HTTPS and 8200 as the port to check my hashicorp vault pod.
readinessProbe:
httpGet:
scheme: HTTPS
path: '/v1/sys/health?activecode=200'
port: 8200
Once the pod is running kubectl describe pod shows this
Readiness probe failed: Error checking seal status: Error making API request.
URL: GET http://127.0.0.1:8200/v1/sys/seal-status
Code: 400. Raw Message:
Client sent an HTTP request to an HTTPS server.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现 这个类似的问题。请参阅此处的完整答案。
根据 此文档:
要将其关闭:
另请参阅此文档。人们可以找到许多使用就绪性和活性探针的示例,例如
I have found this similar problem. See the whole answer here.
According to this documentation:
To turn it off:
See also this documentation. One can find there many examples of using readiness and liveness probes, f.e