libcluster

1.0.0 • Public • Published

libCluster

A library inspired by elixir libcluster to send a HTTP message to all other pods in a Kubernetes cluster.

libCluster({
  // [required]
  // Kubernetes selector
  selector: 'app=my-application'
 
  // [optional]
  // all options from "request" lib can be provided
  method: 'POST',
  uri: '/my/endpoint',
  qs: 'myquery=string&key=value',
  form: { some: ['values'] },
 
  // [optional]
  // for debugging purposes
  debug: true,
}, (error, responses) => {
  console.log(error, responses)
})

Package Sidebar

Install

npm i libcluster

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

5.43 kB

Total Files

5

Last publish

Collaborators

  • mousavian