zmoog / public-notes

Apache License 2.0
0 stars 1 forks source link

Install a custom build of an integration package into a cluster on Elastic Cloud #50

Closed zmoog closed 10 months ago

zmoog commented 10 months ago

I need to install a development version of an integration package into a cluster running on Elastic Cloud.

zmoog commented 10 months ago

Reading https://github.com/elastic/elastic-package/blob/main/docs/howto/install_package.md

zmoog commented 10 months ago

Build the package using elastic-package and copy the .zip file in a safe place:

elastic-package build

cp ../../build/packages/kubernetes-1.44.0.zip /somewhere/safe/
zmoog commented 10 months ago

Set up the required environment variables:

export ELASTIC_PACKAGE_KIBANA_HOST="https://<URL>:9243"
export ELASTIC_PACKAGE_ELASTICSEARCH_USERNAME="elastic"
export ELASTIC_PACKAGE_ELASTICSEARCH_PASSWORD="<REDACTED>"

And finally, and Install the package in .zip file:

$ elastic-package install --zip kubernetes-1.44.0.zip -v
2023/09/05 15:20:57 DEBUG Enable verbose logging
2023/09/05 15:20:58 DEBUG GET https://<KIBANA_HOST>:9243/api/status
2023/09/05 15:20:58 DEBUG Validating built .zip package (path: kubernetes-1.44.0.zip)
2023/09/05 15:20:59 DEBUG Skip validation of the built .zip package
2023/09/05 15:20:59 DEBUG POST https://<KIBANA_HOST>:9243/api/fleet/epm/packages