如何解决“就绪探针失败的弹性错误:错误:获得HTTP代码503,但期望有200”。在Gke?
我正在使用Helm Chart 在这里 。但是在运行此命令helm升级kibana弹性/kibana -values kibana.yaml
之后,它成功运行,但POD给出了此错误Revage>准备探针失败:错误:获得HTTP Code 503,但期望200
在事件中。
因此显示了值文件:
elasticsearchHosts: "https://security-master:9200"
extraEnvs:
- name: 'ELASTICSEARCH_USERNAME'
valueFrom:
secretKeyRef:
name: elastic-credentials
key: username
- name: 'ELASTICSEARCH_PASSWORD'
valueFrom:
secretKeyRef:
name: elastic-credentials
key: password
- name: 'KIBANA_ENCRYPTION_KEY'
valueFrom:
secretKeyRef:
name: kibana
key: encryptionkey
kibanaConfig:
kibana.yml: |
server.ssl:
enabled: true
key: /usr/share/kibana/config/certs/elastic-certificate.pem
certificate: /usr/share/kibana/config/certs/elastic-certificate.pem
xpack.security.encryptionKey: ${KIBANA_ENCRYPTION_KEY}
xpack.encryptedSavedObjects.encryptionKey: ${KIBANA_ENCRYPTION_KEY}
elasticsearch.ssl:
certificateAuthorities: /usr/share/kibana/config/certs/elastic-certificate.pem
verificationMode: certificate
xpack.security.authProviders: [saml]
server.xsrf.whitelist: [/api/security/v1/saml]
protocol: https
secretMounts:
- name: elastic-certificate-pem
secretName: elastic-certificate-pem
path: /usr/share/kibana/config/certs
service:
type: ClusterIP
loadBalancerIP: ""
port: 5601
nodePort: ""
labels: {}
annotations:
cloud.google.com/app-protocols: '{"https": "HTTPS"}'
cloud.google.com/neg: '{"ingress": true}'
cloud.google.com/backend-config: '{"default": "kibana-backendconfig"}'
loadBalancerSourceRanges:
[]
httpPortName: http
readinessProbe:
failureThreshold: 3
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 3
timeoutSeconds: 5
healthCheckPath: /api/status
我想知道可能是什么问题 - 有人可以建议我如何完全避免此错误,谢谢!
I am installing Elastic on GKE with the helm chart here. But after running this command helm upgrade kibana elastic/kibana --values kibana.yaml
, it runs successfully but the pod gives this error Readiness probe failed: Error: Got HTTP code 503 but expected a 200
in events.
The values file is shown thus:
elasticsearchHosts: "https://security-master:9200"
extraEnvs:
- name: 'ELASTICSEARCH_USERNAME'
valueFrom:
secretKeyRef:
name: elastic-credentials
key: username
- name: 'ELASTICSEARCH_PASSWORD'
valueFrom:
secretKeyRef:
name: elastic-credentials
key: password
- name: 'KIBANA_ENCRYPTION_KEY'
valueFrom:
secretKeyRef:
name: kibana
key: encryptionkey
kibanaConfig:
kibana.yml: |
server.ssl:
enabled: true
key: /usr/share/kibana/config/certs/elastic-certificate.pem
certificate: /usr/share/kibana/config/certs/elastic-certificate.pem
xpack.security.encryptionKey: ${KIBANA_ENCRYPTION_KEY}
xpack.encryptedSavedObjects.encryptionKey: ${KIBANA_ENCRYPTION_KEY}
elasticsearch.ssl:
certificateAuthorities: /usr/share/kibana/config/certs/elastic-certificate.pem
verificationMode: certificate
xpack.security.authProviders: [saml]
server.xsrf.whitelist: [/api/security/v1/saml]
protocol: https
secretMounts:
- name: elastic-certificate-pem
secretName: elastic-certificate-pem
path: /usr/share/kibana/config/certs
service:
type: ClusterIP
loadBalancerIP: ""
port: 5601
nodePort: ""
labels: {}
annotations:
cloud.google.com/app-protocols: '{"https": "HTTPS"}'
cloud.google.com/neg: '{"ingress": true}'
cloud.google.com/backend-config: '{"default": "kibana-backendconfig"}'
loadBalancerSourceRanges:
[]
httpPortName: http
readinessProbe:
failureThreshold: 3
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 3
timeoutSeconds: 5
healthCheckPath: /api/status
I am wondering what might be the issue - could someone advice on how I could avoid this error entirely, thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论