open-index/open-npm huggingface dataset:
npm package: @kubernetes-models/rabbitmq-cluster-operator
Description: The RabbitMQ Cluster Kubernetes Operator automates provisioning, management, and operations of RabbitMQ clusters running on Kubernetes.
Author: Justin Chen
Latest version: 0.3.4

# @kubernetes-models/rabbitmq-cluster-operator

[RabbitMQ Cluster Operator](https://github.com/rabbitmq/cluster-operator) models.

## Installation

Install with npm.

```sh
npm install @kubernetes-models/rabbitmq-cluster-operator
```

## Usage

```js
import { RabbitmqCluster } from "@kubernetes-models/rabbitmq-cluster-operator/rabbitmq.com/v1beta1/RabbitmqCluster";

// Create a new RabbitmqCluster
const cluster = new RabbitmqCluster({
  metadata: { name: "example" },
  spec: {
    replicas: 3,
    service: {
      type: "LoadBalancer"
    }
  }
});

// Validate against JSON schema
cluster.validate();
```

## License

See [LICENSE](../../LICENSE)
npm package: @kubernetes-models/rabbitmq-messaging-topology-operator
Description: The operator allow developers to create and manage RabbitMQ messaging topologies within a RabbitMQ cluster using a declarative Kubernetes API
Author: Justin Chen
Latest version: 0.3.4

# @kubernetes-models/rabbitmq-messaging-topology-operator

[RabbitMQ Messaging Topology Operator](https://github.com/rabbitmq/messaging-topology-operator) models.

## Installation

Install with npm.

```sh
npm install @kubernetes-models/rabbitmq-messaging-topology-operator
```

## Usage

See [test](./__tests__/class.ts) for example usage.

## License

See [LICENSE](../../LICENSE).
npm package: @kubernetes-models/redis-operator
Description: Redis operator models
Author: Tommy Chen
Latest version: 0.3.4

# @kubernetes-models/redis-operator

[Redis Operator](https://ot-container-kit.github.io/redis-operator/) models.

## Installation

Install with npm.

```sh
npm install @kubernetes-models/redis-operator
```

## Usage

```js
import { RedisCluster } from "@kubernetes-models/redis-operator/redis.redis.opstreelabs.in/v1beta1/RedisCluster";

const cluster = new RedisCluster({
  metadata: { name: "example" },
  spec: {
    clusterSize: 3,
    clusterVersion: "v7",
    persistenceEnabled: true,
    kubernetesConfig: {
      image: "quay.io/opstree/redis:v7.0.5"
    }
  }
});

// Validate against JSON schema
cluster.validate();
```

## License

MIT
npm package: @kubernetes-models/sealed-secrets
Description: Kubernetes sealed-secrets models
Author: Douglas Duteil
Latest version: 4.4.4

# @kubernetes-models/sealed-secrets

[Sealed Secrets](https://github.com/bitnami-labs/sealed-secrets/) models.

## Installation

Install with npm.

```sh
npm install @kubernetes-models/sealed-secrets
```

## Usage

```js
import { SealedSecret } from "@kubernetes-models/sealed-secrets/bitnami.com/v1alpha1/SealedSecret";

const secret = new SealedSecret({
  metadata: {
    name: "my-secret"
  },
  spec: {
    encryptedData: {
      foo: "AgBy3i4OJSWK+PiTySYZZA9rO43cGDEq"
    }
  }
});

// Validate against JSON schema
secret.validate();
```

## License

MIT
npm package: @kubernetes-models/seldon-core-operator
Description: seldon core operator
Author: chris Hsieh
Latest version: 0.3.4

# @kubernetes-models/seldon-core-operator

[SeldonCore operator](https://github.com/SeldonIO/seldon-core/tree/v1.15.0/helm-charts/seldon-core-operator) models.

## Installation

Install with npm.

```sh
npm install @kubernetes-models/seldon-core-operator
```

## Usage

```js
import { SeldonDeployment } from "@kubernetes-models/seldon-core-operator/machinelearning.seldon.io/v1/SeldonDeployment";

// Create a new SeldonDeployment
const deployment = new SeldonDeployment({
  metadata: { name: "example" },
  spec: {
    predictors: [
      {
        name: "example",
        graph: {
          name: "classifier",
          children: [],
          endpoint: {
            type: "REST",
          },
          type: "MODEL",
        },
      }
    ]
  }
})

// Validate against JSON schema
deployment.validate();
```

## License

See [LICENSE](../../LICENSE)
npm package: @kubernetes-models/shipwright
Description: Shipwright models
Author: Christoph Jerolimov
Latest version: 0.3.4

# @kubernetes-models/shipwright

[Shipwright](https://shipwright.io/) models.

## Installation

Install with npm.

```sh
npm install @kubernetes-models/shipwright
```

## Usage

Models contains the v1alpha1 version for the Shipwright Operator up to version 0.11 and the v1beta1 version that is part of the Shipwright Operator version 0.12+.

```js
import { Build } from "@kubernetes-models/shipwright/shipwright.io/v1beta1/Build";
import { BuildRun } from "@kubernetes-models/shipwright/shipwright.io/v1beta1/BuildRun";

// Create a new Build
const build = new Build({
  metadata: {
    name: "buildah-golang-build",
  },
  spec: {
    strategy: {
      kind: 'ClusterBuildStrategy',
      name: 'buildah',
    },
    source: {
      git: {
        url: 'https://github.com/shipwright-io/sample-go',
      },
      contextDir: 'docker-build',
    },
    output: {
      image: 'registry/namespace/image:latest',
    },
  },
});

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

// Create a BuildRun that links that Build
const buildRun = new Build({
  metadata: {
    generateName: "buildah-golang-build-",
  },
  spec: {
    build: {
      name: 'buildah-golang-build',
    },
  },
});

// Validate against JSON schema
buildRun.validate();
```

## License

MIT
npm package: @kubernetes-models/smi
Description: Service Mesh Interface (SMI) models
Author: Tommy Chen
Latest version: 0.2.4

# @kubernetes-models/smi

[Service Mesh Interface (SMI)](https://smi-spec.io/) models.

## Installation

Install with npm.

```sh
npm install @kubernetes-models/smi
```

## Usage

```ts
import { TrafficSplit } from "@kubernetes-models/smi/split.smi-spec.io/v1alpha4/TrafficSplit";

// Create a new TrafficSplit
const split = new TrafficSplit({
  metadata: { name: "example" },
  spec: {
    service: "example",
    backends: [
      { service: "example-v1", weight: 90 },
      { service: "example-v2", weight: 10 }
    ]
  }
});

// Validate against JSON schema
split.validate();
```

## License

MIT
npm package: @kubernetes-models/spicedb
Description: SpiceDB models
Author: benjamin99
Latest version: 0.2.4

# @kubernetes-models/spicedb

[SpiceDB](https://authzed.com/docs) models.

## Installation

Install with npm.

```sh
npm install @kubernetes-models/spicedb
```

## Usage

```js
import { SpiceDBCluster } from '@kubernetes-models/spicedb/authzed.com/v1alpha1/SpiceDBCluster';

// create the spiceDB cluster
const cluster = new SpiceDBCluster({
  metadata: {
    name: "dev"
  },
  spec: {
    channel: 'stable',
    version: 'v1.14.0',
    config: {
      datastoreEngine: 'memory',
    },
    secretName: 'dev-spicedb-secret',
  },
});

// Validate against JSON schema
cluster.validate();
```

## License

MIT
npm package: @kubernetes-models/spiffe
Description: SPIFFE models
Author: Tommy Chen
Latest version: 1.2.4

# @kubernetes-models/spiffe

[SPIFFE](https://spiffe.io/) models.

## Installation

Install with npm.

```sh
npm install @kubernetes-models/spiffe
```

## Usage

```js
import { SpiffeID } from "@kubernetes-models/spiffe/spiffeid.spiffe.io/v1beta1/SpiffeID";

const id = new SpiffeID({
  metadata: {
    name: "test-id"
  },
  spec: {
    parentId: 'spiffe://example.org/spire/server',
    spiffeId: 'spiffe://example.org/test',
    selector: {
      namespace: 'default',
      podName: 'test-pod'
    },
  }
});

// Validate against JSON schema
id.validate();
```

## License

MIT
npm package: @kubernetes-models/strimzi-kafka-operator
Description: Strimzi Kafka operator models
Author: Tommy Chen
Latest version: 0.2.0

# @kubernetes-models/strimzi-kafka-operator

[Strimzi Kafka Operator](https://strimzi.io/) models.

## Installation

Install with npm.

```sh
npm install @kubernetes-models/strimzi-kafka-operator
```

## Usage

```js
import { Kafka } from "@kubernetes-models/strimzi-kafka-operator/kafka.strimzi.io/v1/Kafka";

// Create a new Kafka
const kafka = new Kafka({
  metadata: {
    name: "my-cluster",
    annotations: {
      "strimzi.io/node-pools": "enabled",
      "strimzi.io/kraft": "enabled"
    }
  },
  spec: {
    kafka: {
      version: "4.1.1",
      metadataVersion: "4.1.1",
      listeners: [
        { name: "plain", port: 9092, type: "internal", tls: false },
        { name: "tls", port: 9093, type: "internal", tls: true }
      ],
      config: {
        "offsets.topic.replication.factor": 1,
        "transaction.state.log.replication.factor": 1,
        "transaction.state.log.min.isr": 1,
        "default.replication.factor": 1,
        "min.insync.replicas": 1
      }
    }
  }
});

// Validate against JSON schema
kafka.validate();
```

## License

MIT
npm package: @kubernetes-models/thanos-operator
Description: Thanos operator models
Author: Tommy Chen
Latest version: 2.2.4

# @kubernetes-models/thanos-operator

[Thanos operator](https://github.com/banzaicloud/thanos-operator) models.

## Installation

Install with npm.

```sh
npm install @kubernetes-models/thanos-operator
```

## Usage

```js
import { Thanos } from "@kubernetes-models/thanos-operator/monitoring.banzaicloud.io/v1alpha1/Thanos";

// Create a new Thanos
const thanos = new Thanos({
  metadata: { name: "example" },
  spec: {
    query: {},
    rule: {},
    storeGateway: {}
  }
});

// Validate against JSON schema
thanos.validate();
```

## License

See [LICENSE](../../LICENSE)
npm package: @kubernetes-models/tidb-operator
Description: TiDB Operator models
Author: Jay Chung
Latest version: 0.3.0

# @kubernetes-models/tidb-operator

[TiDB Operator](https://github.com/pingcap/tidb-operator) models.

## Installation

Install with npm.

```sh
npm install @kubernetes-models/tidb-operator
```

## Usage

```js
import { TidbCluster } from "@kubernetes-models/tidb-operator/pingcap.com/v1alpha1/TidbCluster";

// Create a new TidbCluster
const cluster = new TidbCluster({
  metadata: {
    name: "cluster-sample",
  },
  spec: {
    version: 'v6.5.0',
    timezone: 'UTC',
    pvReclaimPolicy: 'Retain',
    enableDynamicConfiguration: true,
    configUpdateStrategy: 'RollingUpdate',
    discovery: {},
    helper: {
      image: 'alpine:3.16.0',
    },
    pd: {
      baseImage: 'pingcap/pd',
      maxFailoverCount: 0,
      replicas: 1,
      // if storageClassName is not set, the default Storage Class of the Kubernetes cluster will be used
      // storageClassName: local-storage
      requests: {
        storage: '1Gi'
      },
      config: {},
    },
    tikv: {
      baseImage: 'pingcap/tikv',
      maxFailoverCount: 0,
      // If only 1 TiKV is deployed, the TiKV region leader
      // cannot be transferred during upgrade, so we have
      // to configure a short timeout
      evictLeaderTimeout: '1m',
      replicas: 1,
      // if storageClassName is not set, the default Storage Class of the Kubernetes cluster will be used
      // storageClassName: local-storage
      requests: {
        storage: '1Gi'
      },
      config: {
        storage: {
          // In basic examples, we set this to avoid using too much storage.
          'reserve-space': '0MB',
        },
        rocksdb: {
          // In basic examples, we set this to avoid the following error in some Kubernetes clusters:
          // "the maximum number of open file descriptors is too small, got 1024, expect greater or equal to 82920"
          'max-open-files': 256,
        },
        raftdb: {
          'max-open-files': 256,
        },
      },
    },
  },
});

// Validate against JSON schema
cluster.validate();
```

## License

See [LICENSE](../../LICENSE)
npm package: @kubernetes-models/traefik
Description: Traefik models
Author: Stanley
Latest version: 0.2.4

# @kubernetes-models/traefik

[Traefik](https://traefik.io/) models.

## Installation

Install with npm.

```sh
npm install @kubernetes-models/traefik
```

## Usage

```js
import { IngressRoute } from "@kubernetes-models/traefik/traefik.containo.us/v1alpha1/IngressRoute";

// Create a new IngressRoute
const ingressRoute = new IngressRoute({
  metadata: {
    name: "test"
  },
  spec: {
    entryPoints: ["web"],
    routes: [
      {
        match: "Host(`example.com`)",
        kind: "Rule",
        services: [
          {
            name: "test",
            port: 80
          }
        ]
      }
    ]
  }
});

// Validate against JSON schema
ingressRoute.validate();
```

## License

MIT
npm package: @kubernetes-models/victoria-metrics-operator
Description: VictoriaMetrics operator models
Author: Tommy Chen
Latest version: 2.6.3

# @kubernetes-models/victoria-metrics-operator

[VictoriaMetrics operator](https://github.com/VictoriaMetrics/operator) models.

## Installation

Install with npm.

```sh
npm install @kubernetes-models/victoria-metrics-operator
```

## Usage

```js
import { VMCluster } from "@kubernetes-models/victoria-metrics-operator/operator.victoriametrics.com/v1beta1/VMCluster";

// Create a new VMCluster
const cluster = new VMCluster({
  metadata: { name: "example" },
  spec: {
    retentionPeriod: "12",
    vmstorage: {
      replicaCount: 2
    }
  }
});

// Validate against JSON schema
cluster.validate();
```

## License

See [LICENSE](../../LICENSE)