0.2.0 • Published 1 year ago
@kubernetes-models/smi v0.2.0
@kubernetes-models/smi
Service Mesh Interface (SMI) models.
Installation
Install with npm.
npm install @kubernetes-models/smi
Usage
import { TrafficSplit } from "@kubernetes-models/smi/split.smi-spec.io/v1alpha4/TrafficSplit";
// Create a new TrafficSplit
const split = new TrafficSplit({
metadata: { name: "example" },
spec: {
service: "example",
backends: [
{ service: "example-v1", weight: 90 },
{ service: "example-v2", weight: 10 }
]
}
});
// Validate against JSON schema
split.validate();
License
MIT
0.2.0
1 year ago
0.1.1
1 year ago
0.0.0-20240610074310
1 year ago
0.0.0-20240608085410
1 year ago
0.0.0-20240608155033
1 year ago
0.1.0
1 year ago