Package detail

kube-probe

nodeshift1.4kApache-2.0deprecated1.0.3

This module is no longer maintained

connect.js middleware that sets up generic liveness and readiness probes for Openshift/Kubernetes

connect, connect.js, express, express.js

readme

This module is deprecated.

Build Status Coverage Status Greenkeeper badge Connect middleware that sets up generic liveness and readiness probes for OpenShift/Kubernetes

Example Usage:

const express = require('express');
const app = express();

const probe = require('kube-probe');

probe(app);

This will add 2 GET endpoints /api/health/liveness and /api/health/readiness that will return a 200 OK response. This module uses overload-protection to identify when a process may be overloaded, and will return HTTP 503 Service Unavailable if the service becomes too heavily loaded. Configuration of the protection-config module may be passed as options.protectionConfig.

See: https://github.com/davidmarkclements/overload-protection/

Parameters

  • app - an instance of a connect-based framework (e.g. express.js) - required

  • options - optional

  • options.readinessURL - string - url where the readiness probe is located
  • options.livenessURL - string - url where the livenessURL probe is located
  • options.readinessCallback - function - function to call when the readiness probe is triggered
  • options.livenessCallback - function - function to call when the liveness probe is triggered
  • options.bypassProtection - boolean - kube-probe will bypass protection (defaults to false)
  • options.protectionConfig - object - options passed direction to overload-protection

Environment Variables

  • KUBE_PROBE_BYPASS_PROTECTION - boolean - kube-probe will bypass protection

changelog

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

1.0.3 (2021-07-28)

Bug Fixes

  • upgrade eslint from 7.15.0 to 7.16.0 (#137) (3d328ff)
  • upgrade eslint from 7.16.0 to 7.17.0 (#141) (84ff6a6)
  • upgrade eslint from 7.17.0 to 7.19.0 (#144) (f22980d)
  • upgrade eslint from 7.19.0 to 7.20.0 (#145) (4a2a83f)
  • upgrade eslint-plugin-promise from 4.2.1 to 4.3.1 (#143) (bef0d8c)
  • upgrade standard-version from 9.0.0 to 9.1.0 (#140) (985b9cd)
  • upgrade standard-version from 9.1.0 to 9.1.1 (#146) (534efdc)
  • upgrade tape from 5.0.1 to 5.1.0 (#139) (011629c)
  • upgrade tape from 5.1.0 to 5.1.1 (#142) (25c1a98)
  • upgrade tape from 5.1.1 to 5.2.0 (#147) (f934b39)

1.0.2 (2021-01-04)

Bug Fixes

  • upgrade eslint from 7.11.0 to 7.12.0 (#129) (2c99fd5)
  • upgrade eslint from 7.12.0 to 7.12.1 (#131) (a92a8ac)
  • upgrade eslint from 7.12.1 to 7.13.0 (#132) (8b3a586)
  • upgrade eslint from 7.13.0 to 7.14.0 (#135) (213f79b)
  • upgrade eslint from 7.14.0 to 7.15.0 (#136) (7141be0)
  • upgrade eslint-plugin-standard from 4.0.2 to 4.1.0 (#133) (4a0b35d)

1.0.1 (2020-10-14)

Bug Fixes

1.0.0 (2020-09-10)

Bug Fixes

  • [Snyk] Upgrade xo from 0.28.1 to 0.28.2 (#96) (58b97a0)
  • upgrade standard-version from 8.0.1 to 8.0.2 (#117) (39a1d98)
  • upgrade xo from 0.32.1 to 0.33.0 (#119) (2d6352b)

0.5.0 (2020-04-23)

Features

  • Option to bypass overload protection when needed (#93) (93ee8e5), closes #89

Bug Fixes

  • upgrade xo from 0.28.0 to 0.28.1 (#92) (c5f663d)

0.4.0 (2020-02-07)

chore

  • package: Engine parameter targets node 10+ (#83) (04175c2)

BREAKING CHANGES

  • package: removal of Node 8 support

0.3.3 (2020-01-23)

Bug Fixes

  • package: update overload-protection to version 1.2.0 (c99b658)

Build System

  • using LTS and 10x also cleaning up the config (58026c1)

0.3.2 (2019-02-25)

0.3.1 (2018-02-12)

Bug Fixes

  • response should include content type header (#31) (d0dce9d)