@soft-stech/contour
v4.2.1
Published
Contour models
Downloads
4
Readme
@kubernetes-models/contour
Contour models.
Installation
Install with npm.
npm install @kubernetes-models/contour
Usage
import { HTTPProxy } from "@kubernetes-models/contour/projectcontour.io/v1";
// Create a new HTTP proxy
const route = new HTTPProxy({
metadata: {
name: "foo"
},
spec: {
virtualhost: {
fqdn: "foo.example.com"
},
routes: [
{
conditions: [
{
prefix: "/"
}
],
services: [
{
name: "foo",
port: 80
}
]
}
]
}
});
// Validate against JSON schema
route.validate();
License
MIT