minecluster/dist/app.js

18 lines
482 B
JavaScript
Raw Normal View History

import stream from "stream";
import k8s from "@kubernetes/client-node";
import Minecluster from "../lib/Minecluster.js";
const mcl = new Minecluster();
mcl.start();
async function main(){
const kc = new k8s.KubeConfig();
kc.loadFromDefault();
/*const k8sApi = kc.makeApiClient(k8s.CoreV1Api);
const res = await k8sApi.listNamespacedPod('mc-garden-default');
const pods = res.body.items.map((vp1) => vp1.metadata.name);
console.log(pods);*/
}
main().catch((e)=>{console.log(e)});