fix(core): update
This commit is contained in:
10
ts/index.ts
Normal file
10
ts/index.ts
Normal file
@ -0,0 +1,10 @@
|
||||
import * as plugins from './kubernetes.plugins';
|
||||
|
||||
const kc = new plugins.kubectl.KubeConfig();
|
||||
kc.loadFromDefault();
|
||||
|
||||
const k8sApi = kc.makeApiClient(k8s.CoreV1Api);
|
||||
|
||||
k8sApi.listNamespacedPod('default').then((res) => {
|
||||
console.log(res.body);
|
||||
});
|
5
ts/kubernetes.plugins.ts
Normal file
5
ts/kubernetes.plugins.ts
Normal file
@ -0,0 +1,5 @@
|
||||
import * as kubectl from '@kubernetes/client-node';
|
||||
|
||||
export {
|
||||
kubectl
|
||||
};
|
Reference in New Issue
Block a user