Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

@kubernetes-models/cilium

Cilium CRD.

Installation

Install with npm.

npm install @kubernetes-models/cilium

Usage

import { CiliumLocalRedirectPolicy } from "@kubernetes-models/cilium/cilium.io/v2/CiliumLocalRedirectPolicy";

const lrp = new CiliumLocalRedirectPolicy({
  metadata: {
    name: "lrp"
  },
  spec: {
    redirectFrontend: {
      serviceMatcher: {
        serviceName: "my-service",
        namespace: "default"
      }
    },
    redirectBackend: {
      localEndpointSelector: {
        matchLabels: {
          name: "proxy"
        }
      },
      toPorts: [
        {
          port: "8080",
          protocol: "TCP"
        }
      ]
    }
  }
});

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

License

MIT