Skip to content

prompt-bot/is-kubernetes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

is-kubernetes

Check if the process is running inside a kubernetes container

Install

$ npm install is-kubernetes

Usage

const isKubernetes = require('is-kubernetes');

if (isKubernetes()) {
	console.log('Running inside a kubernetes container');
}

CLI

$ npx is-kubernetes

Exits with code 0 if inside a kubernetes container and 1 if not.

About

Check if the process is running inside a kubernetes container

Resources

License

Stars

Watchers

Forks

Packages

No packages published