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

4.1.0 • 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

Install

npm i kubernetes-models

DownloadsWeekly Downloads

2,681

Version

4.1.0

License

MIT

Unpacked Size

4.8 MB

Total Files

4683

Last publish

Collaborators

  • tommy351