For now, the client is implemented for server-side use with node
There are future plans to also build a jQuery compatible library but for now, all of the examples and instructions assume the node client.
$ npm install @kubernetes/client-node
List all pods
const k8s = ;const kc = ;kc;const k8sApi = kc;k8sApi;
Create a new namespace
const k8s = ;const kc = ;kc;const k8sApi = kc;var namespace =metadata:name: 'test';k8sApi;
There are several more examples in the examples directory.
(re) Generating code
To run tests, execute the following:
Please see CONTRIBUTING.md for instructions on how to contribute.