@lpgroup/feathers-k8s-probe-services

1.4.6 • Public • Published

@lpgroup/feathers-k8s-probe-services

npm version Known Vulnerabilities Licence MIT tested with jest codecov

Kubernetes (k8s) probe services for Feathers exposed on /healthy and /ready

They will both return 404 and the text specified in the config file. Will start to send 200 ok after app.set("status").ready = "OK" is executed

Install

Installation of the npm

npm install @lpgroup/feathers-k8s-probe-services

Usage

In config/default.json add the following.

{
  "status": {
    "ready": "NOT-STARTED"
  }
}

In src/servies/index.js

const { ready, healthy } = require("@lpgroup/feathers-k8s-probe-services");

app.configure(ready);
app.configure(healthy);

In src/index.js

server.on("listening", async () => {
  app.set("status").ready = "OK";
});

Contribute

See contribute

License

MIT - See licence

Package Sidebar

Install

npm i @lpgroup/feathers-k8s-probe-services

Weekly Downloads

44

Version

1.4.6

License

MIT

Unpacked Size

5.47 kB

Total Files

9

Last publish

Collaborators

  • arlukin
  • muscot