@arve0/kubeconfig
v0.0.1
Published
read kubernetes config context
Downloads
4
Maintainers
Readme
@arve0/kubeconfig
Reads kubernetes context from $HOME/.kube/config or /var/secrets/kubernetes.io/serviceaccount.
Install
npm install @arve0/kubeconfig
Usage
const { getKubeContext } = require("@arve0/kubeconfig");
(async function main() {
const context = await getKubeContext();
console.log(context);
})();