@soft-stech/kubernetes-models
v4.3.2
Published
Kubernetes models
Downloads
396
Readme
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