istio: Index | Files | Directories

package status

import ""


Package Files



const (

    // KubeAppProberEnvName is the name of the command line flag for pilot agent to pass app prober config.
    // The json encoded string to pass app HTTP probe information from injector(istioctl or webhook).
    // For example, ISTIO_KUBE_APP_PROBERS='{"/app-health/httpbin/livez":{"httpGet":{"path": "/hello", "port": 8080}}.
    // indicates that httpbin container liveness prober port is 8080 and probing path is /hello.
    // This environment variable should never be set manually.
    KubeAppProberEnvName = "ISTIO_KUBE_APP_PROBERS"


var PrometheusScrapingConfig = env.RegisterStringVar("ISTIO_PROMETHEUS_ANNOTATIONS", "", "")

func FormatProberURL Uses

func FormatProberURL(container string) (string, string, string)

FormatProberURL returns a set of HTTP URLs that pilot agent will serve to take over Kubernetes app probers.

type Config Uses

type Config struct {
    LocalHostAddr string
    // KubeAppProbers is a json with Kubernetes application prober config encoded.
    KubeAppProbers string
    NodeType       model.NodeType
    StatusPort     uint16
    AdminPort      uint16

Config for the status server.

type KubeAppProbers Uses

type KubeAppProbers map[string]*Prober

KubeAppProbers holds the information about a Kubernetes pod prober. It's a map from the prober URL path to the Kubernetes Prober config. For example, "/app-health/hello-world/livez" entry contains liveness prober config for container "hello-world".

type Prober Uses

type Prober struct {
    HTTPGet        *apimirror.HTTPGetAction `json:"httpGet"`
    TimeoutSeconds int32                    `json:"timeoutSeconds,omitempty"`

Prober represents a single container prober

type PrometheusScrapeConfiguration Uses

type PrometheusScrapeConfiguration struct {
    Scrape string `json:"scrape"`
    Path   string `json:"path"`
    Port   string `json:"port"`

type Server Uses

type Server struct {
    // contains filtered or unexported fields

Server provides an endpoint for handling status probes.

func NewServer Uses

func NewServer(config Config) (*Server, error)

NewServer creates a new status server.

func (*Server) Run Uses

func (s *Server) Run(ctx context.Context)

Run opens a the status port and begins accepting probes.



Package status imports 29 packages (graph) and is imported by 6 packages. Updated 2020-12-21. Refresh now. Tools for package owners.