probe

command
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

README

Health Probe

Health Probe utility allows you to query health of go-micro services. Meant to be used for health checking micro services in Kubernetes, using the exec probes.

Health checking on Kubernetes

In your Kubernetes Pod specification manifest, specify a livenessProbe and/or readinessProbe for the container:

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  namespace: default
  name: greeter
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: greeter-srv
    spec:
      containers:
        - name: greeter
          command: [
            "/greeter-srv",
            "--server_address=0.0.0.0:8080",
            "--broker_address=0.0.0.0:10001"
          ]
          image: microhq/greeter-srv:kubernetes
          imagePullPolicy: Always
          ports:
          - containerPort: 8080
            name: greeter-port
          livenessProbe:
            exec:
              initialDelaySeconds: 5
              periodSeconds: 3
              command: [
                "/health_probe",
                "--server_name=greeter",
                "--server_address=0.0.0.0:8080"
              ]

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL