Giter Club home page Giter Club logo

Comments (1)

aibangjuxin avatar aibangjuxin commented on August 14, 2024

在使用 Istio 代理的情况下,确保 Liveness 和 Readiness 探针能够正确配置是很重要的。

当你使用 Istio 时,Istio 代理(sidecar)会截取容器的所有网络流量,包括 Liveness 和 Readiness 探针的流量。因此,确保这些探针能够正确访问是关键的。

一般来说,你需要确保以下事项:

  1. Liveness 探针:如果你的容器定义了 Liveness 探针,确保 Istio 代理的 Envoy 配置允许访问该探针的路径。通常,默认情况下,Istio 应该允许访问 /healthz 路径,但你需要确保你的 Liveness 探针在此路径上提供响应。如果你的 Liveness 探针使用不同的路径,你需要相应地配置 Istio。

  2. Readiness 探针:类似于 Liveness 探针,确保 Istio 代理的 Envoy 配置允许访问 Readiness 探针的路径。通常,默认情况下,Istio 应该允许访问 /healthz/ready 路径。确保你的 Readiness 探针在此路径上提供响应。

如果你的 Liveness 和 Readiness 探针没有特殊配置,通常只需确保 Istio 代理允许访问默认路径,即 /healthz/healthz/ready,即可正常工作。

但如果你有特殊需求或自定义的探针路径,确保你的 Istio 配置与之匹配,以确保 Liveness 和 Readiness 探针能够正确工作。此外,还需要确保容器内的服务实际上在这些路径上提供正确的健康检查响应。

from groovy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.