New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

arecibo

Package Overview
Dependencies
Maintainers
2
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arecibo - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

2

package.json
{
"name": "arecibo",
"version": "0.2.0",
"version": "0.3.0",
"description": "Fastify plugin that respondes to kubernetes readiness and liveness probes.",

@@ -5,0 +5,0 @@ "main": "./build/index.js",

# arecibo
Fastify ping responder for Kubernetes Liveness and Readiness Probes
## Usage
## Installation
Install with ```npm i arecibo```
`npm i arecibo`
On Kubernetes deployment manifest adds
## Usage
```JS
const arecibo = require('arecibo') // or import arecibo from 'arecibo'
fastify.register(arecibo, {
message: 'Put here your custom message', // optional, default to original arecibo message
readinessURL: '/put/here/your/custom/url', // optional, deafult to /arecibo/readiness
livenessURL: '/put/here/your/custom/url', // optional, deafult to /arecibo/liveness
readinessCallback: (req, reply) => reply.type('text/html').send('Put here your custom message') // optional
livenessCallback: (req, reply) => reply.type('text/html').send('Put here your custom message') // optional
})
```
On Kubernetes add deployment manifest
```YAML
...
livenessProbe:

@@ -30,2 +47,3 @@ httpGet:

periodSeconds: 15
...
```

@@ -32,0 +50,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc