@soft-stech/karpenter
v0.1.1
Published
Karpenter models
Downloads
4
Readme
@kubernetes-models/karpenter
Karpenter models.
Installation
Install with npm.
npm install @kubernetes-models/karpenter
Usage
import { EC2NodeClass } from "@kubernetes-models/karpenter/karpenter.k8s.aws/v1beta1";
// Create a new EC2NodeClass
const nodeClass = new EC2NodeClass({
metadata: { name: "test" },
spec: {
amiFamily: "AL2",
subnetSelectorTerms: [{ tags: { "aws-cdk:subnet-name": "private" } }],
securityGroupSelectorTerms: [{ name: "test" }]
}
});
// Validate against JSON schema
nodeClass.validate();
License
MIT