fix(core): update

This commit is contained in:
2020-01-15 14:08:06 +00:00
commit 7368300ed9
13 changed files with 2765 additions and 0 deletions

10
ts/index.ts Normal file
View 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
View File

@ -0,0 +1,5 @@
import * as kubectl from '@kubernetes/client-node';
export {
kubectl
};