Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 614 Bytes

File metadata and controls

36 lines (27 loc) · 614 Bytes

@kubernetes-models/elastic-cloud

Elastic Cloud on Kubernetes (ECK) models.

Installation

Install with npm.

npm install @kubernetes-models/elastic-cloud
import { Elasticsearch } from '@kubernetes-models/elastic-cloud/elasticsearch.k8s.elastic.co/v1';

const elasticsearch = new Elasticsearch({
  metadata: {
    name: "example"
  },
  spec: {
    version: "8.9.2",
    nodeSets: [
      {
        name: "example"
      }
    ]
  },
});

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

License

MIT