Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for declarative/IaC Elasticsearch API requests #5385

Closed
brsolomon-deloitte opened this issue Feb 15, 2022 · 1 comment
Closed

Support for declarative/IaC Elasticsearch API requests #5385

brsolomon-deloitte opened this issue Feb 15, 2022 · 1 comment

Comments

@brsolomon-deloitte
Copy link

Proposal

Allow some initial request to the Elasticsearch API to be declared with IaC through either CRDs or Helm chart parameters.

Use case. Why is this important?

From an administrative standpoint, deployment of Elastic stack does not stop once the Elasticsearch cluster itself has been provisioned. Initial steps also commonly consist of creating things like component/index template, ingest pipelines, ILM policies.

Currently we do these through the Dev Tools console in Kibana. For example,

PUT _component_template/logs-xxx-yyy
{ ... }
PUT _ingest/pipeline/logs-xxx-yyy-pipeline
{ ... }
PUT _component_template/logs-xxx-yyy-settings
{ ... }
PUT /_index_template/logs-xxx-yyy
{ ... }

This violates our GitOps git-as-source-of-truth paradigm since it creates a new cluster state that is not captured in our git-sourced Helm charts.

Since we anticipate multiple clusters taking these same initial index management components, it would be great to have a formal way to declare them alongside the Elastic stack parameters themselves.

Boiling things down, pretty much all API requests consist of:

  • method
  • URL path
  • optional body

It seems like that is something that could potentially be parameterized alongside the initial deployment. Spitballing here:

initialApiObjects:
  - method: PUT
    path: _component_template/logs-xxx-yyy
    payload: |
      {"foo": "bar"}
@botelastic botelastic bot added the triage label Feb 15, 2022
@barkbay
Copy link
Contributor

barkbay commented Feb 16, 2022

Hi, I think this is a duplicate of #3598. Feel free to reopen or comment if needed.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants