Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
Silas Boyd-Wickizer Fix examples
Latest commit 398d624 Jun 8, 2019 History
Broken by API change in #268
2 contributors

Users who have contributed to this file

@brendanburns @brendandburns
const k8s = require('@kubernetes/client-node');
const kc = new k8s.KubeConfig();
kc.loadFromDefault();
const k8sApi = kc.makeApiClient(k8s.CoreV1Api);
k8sApi.listNamespacedPod('default')
.then((res) => {
console.log(res.body);
});