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

4.3.1 • Public • Published

@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

Package Sidebar

Install

npm i @kubernetes-models/contour

Weekly Downloads

72

Version

4.3.1

License

MIT

Unpacked Size

1.22 MB

Total Files

56

Last publish

Collaborators

  • tommy351