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

2.3.0 • Public • Published

@kubernetes-models/istio

Istio models.

Installation

Install with npm.

npm install @kubernetes-models/istio

Usage

import { Gateway } from "@kubernetes-models/istio/networking.istio.io/v1beta1/Gateway";

// Create a new Gateway
const gateway = new Gateway({
  metadata: {
    name: "test"
  },
  spec: {
    selector: {
      app: "istio"
    },
    servers: [
      {
        port: {
          number: 80
        },
        hosts: ["*"]
      }
    ]
  }
});

// Validate against JSON schema
gateway.validate();

License

MIT

Dependents (0)

Package Sidebar

Install

npm i @kubernetes-models/istio

Weekly Downloads

382

Version

2.3.0

License

MIT

Unpacked Size

1.79 MB

Total Files

114

Last publish

Collaborators

  • tommy351