@kubernetes/typescript-node
NodeJS client for kubernetes-client-typescript
Last updated 3 years ago by brendandburns .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @kubernetes/typescript-node 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.1.1                                ...           latest (3 years ago)

2 Versions

  • 0.1.1                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 2
Last Month 2
Dependencies (9)
Dev Dependencies (11)

Copyright 2014 - 2017 © taobao.org |