0.2.0 • Published 1 year ago

@kubernetes-models/elastic-cloud v0.2.0

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

@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