How to fix Spring Cloud Data Flow Kubernetes container Readiness probe failed: HTTP probe failed with statuscode: 401

自作多情 提交于 2019-12-14 03:13:43

问题


Have deployed Spring Cloud Data flow on Azure AKS using Helm: helm install --name my-release stable/spring-cloud-data-flow

Data Flow Server Implementation
Name: spring-cloud-dataflow-server
Version: 2.0.1.RELEASE

But getting Liveness probe and Readiness probe failed 401:

Events:
  Type     Reason     Age                   From                               Message
  ----     ------     ----                  ----                               -------
  Warning  Unhealthy  10m (x52 over 103m)   kubelet, aks-nodepool1-28921497-0  Liveness probe failed: HTTP probe failed with statuscode: 401
  Warning  BackOff    6m8s (x138 over 73m)  kubelet, aks-nodepool1-28921497-0  Back-off restarting failed container
  Warning  Unhealthy  67s (x220 over 104m)  kubelet, aks-nodepool1-28921497-0  Readiness probe failed: HTTP probe failed with statuscode: 401

Reading this dococument https://docs.spring.io/spring-cloud-dataflow/docs/2.0.2.RELEASE/reference/htmlsingle/#_application_and_server_properties

deployer.appName.kubernetes.probeCredentialsSecret=myprobesecret

But how to Set/Run the deployer properties if using Helm only to deploy Data Flow on AKS cluster ?

Or how to make the release using the default ProbeSecret ? I did not create or modify ProbeSecret when deploying the DataFlow with Helm.

Thanks


回答1:


We support a variety of deployer properties that you can override per stream/task deployment in SCDF. The probeCredentialsSecret property is one of them and it is specifically designed to supply a secret to gain access to a protected liveness and readiness probes.

Whether or not you used Helm to provision SCDF on K8s, the actual property needs to be supplied at the time of stream/task deployment.

Unless you create a secret and configure it in SCDF, you will not be able to successfully handshake with the secured probes.

Please follow the ref. guide that walks through the configuration with an example.



来源:https://stackoverflow.com/questions/55821698/how-to-fix-spring-cloud-data-flow-kubernetes-container-readiness-probe-failed-h

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!