@kubernetes-models/traefik
v0.2.0
Published
Traefik models
Downloads
534
Maintainers
Readme
@kubernetes-models/traefik
Traefik models.
Installation
Install with npm.
npm install @kubernetes-models/traefik
Usage
import { IngressRoute } from "@kubernetes-models/traefik/traefik.containo.us/v1alpha1/IngressRoute";
// Create a new IngressRoute
const ingressRoute = new IngressRoute({
metadata: {
name: "test"
},
spec: {
entryPoints: ["web"],
routes: [
{
match: "Host(`example.com`)",
kind: "Rule",
services: [
{
name: "test",
port: 80
}
]
}
]
}
});
// Validate against JSON schema
ingressRoute.validate();
License
MIT