is-kubernetes
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i is-kubernetes

Weekly Downloads

5

Version

1.0.1

License

MIT

Unpacked Size

3.12 kB

Total Files

6

Last publish

Collaborators

  • shaddock