[FEATURE] Alt Kubeenv

This commit is contained in:
Dunemask 2024-02-04 18:17:59 -07:00
parent cdea22c08a
commit 3c6f31f6d7
7 changed files with 19 additions and 13 deletions

View file

@ -1,8 +1,7 @@
import k8s from "@kubernetes/client-node";
import { getUserDeployments } from "./k8s-server-control.js";
import { getServerEntries } from "../database/queries/server-queries.js";
const kc = new k8s.KubeConfig();
kc.loadFromDefault();
import kc from "./k8s-config.js";
const k8sMetrics = new k8s.Metrics(kc);
const namespace = process.env.MCL_SERVER_NAMESPACE;