@soft-stech/knative
TypeScript icon, indicating that this package has built-in type declarations

2.3.1 • Public • Published

@kubernetes-models/knative

Knative models.

Installation

Install with npm.

npm install @kubernetes-models/knative

Usage

import { Service } from "@kubernetes-models/knative/serving.knative.dev/v1/Service";

// Create a service
const service = new Service({
  metadata: { name: "hello" },
  spec: {
    template: {
      metadata: { name: "hello-world" },
      spec: {
        containers: [
          {
            image: "gcr.io/knative-samples/helloworld-go",
            ports: [{ containerPort: 8080 }]
          }
        ]
      }
    }
  }
});

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

License

MIT

Package Sidebar

Install

npm i @soft-stech/knative

Weekly Downloads

0

Version

2.3.1

License

MIT

Unpacked Size

1.91 MB

Total Files

153

Last publish

Collaborators

  • nulled06
  • cogors
  • maxgorovenko