is-kubernetes
v1.0.1
Published
Check if the process is running inside a kubernetes container
Readme
is-kubernetes
Check if the process is running inside a kubernetes container
Install
$ npm install is-kubernetesUsage
const isKubernetes = require('is-kubernetes');
if (isKubernetes()) {
console.log('Running inside a kubernetes container');
}CLI
$ npx is-kubernetesExits with code 0 if inside a kubernetes container and 1 if not.
