@kubernetes-models/traefik
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

@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

Package Sidebar

Install

npm i @kubernetes-models/traefik

Weekly Downloads

21

Version

0.1.0

License

MIT

Unpacked Size

602 kB

Total Files

72

Last publish

Collaborators

  • tommy351