@kubernetes/typescript-node

0.1.1 • Public • Published

typescript client for Kubernetes

Build Status

[Alpha] Typescript client for kubernetes

Needs lots of work...

Installing

Install nodejs

# Typescript modules
sudo npm install -g typescript ts-node

# Required libraries for the client
sudo npm install -g request bluebird js-yaml base-64

Example Code

import config = require('./config');

let k8sApi = config.Config.defaultClient();

k8sApi.listNamespacedPod('default')
    .then((res) => {
        console.log(res.body);
    });

Running via container

$ docker run -v $HOME:/root -it brendanburns/ts-k8s

Running locally

With ts-node

ts-node example.ts

With tsc

tsc example.ts
node example.js

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    11
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    11
  • 0.1.0
    0

Package Sidebar

Install

npm i @kubernetes/typescript-node

Weekly Downloads

11

Version

0.1.1

License

Apache-2.0

Last publish

Collaborators

  • mbohlool
  • brendandburns