2.3.0 • Published 1 month ago

@kubernetes-models/istio v2.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

@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