is-kube
v1.0.0
Published
Checks to see if the process is running inside a Kubernetes container
Downloads
53
Readme
is-kube
Checks to see if the process is running inside a kubernetes container (i.e., similar to is-docker)
Install
$ npm install is-kube
Usage
JavaScript:
const isKube = require('is-kube');
if (isKube()) {
console.log('Running inside a kubernetes container');
}
Typescript:
import isKube from "is-kube"
if (isKube()) {
console.log('Running inside a kubernetes container');
}