kubernetes-models
TypeScript icon, indicating that this package has built-in type declarations

4.3.1 • Public • Published

kubernetes-models

Kubernetes models in TypeScript.

Installation

Install with npm.

npm install kubernetes-models

Usage

import { Pod } from "kubernetes-models/v1";

// Create a new instance
const pod = new Pod({
  metadata: {
    name: "foo"
  },
  spec: {
    containers: []
  }
});

// Validate against JSON schema
pod.validate();

License

MIT

Package Sidebar

Install

npm i kubernetes-models

Weekly Downloads

23,947

Version

4.3.1

License

MIT

Unpacked Size

4.89 MB

Total Files

4884

Last publish

Collaborators

  • tommy351