Elastic Cloud on Kubernetes (ECK) models.
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();
MIT