Skip to content

Installation scripts for AutoOps for Self-managed customers running Cloud Connected Mode

License

Notifications You must be signed in to change notification settings

elastic/autoops-install

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

autoops-install

Install scripts to simplify the installation of AutoOps with your Self-Managed clusters.

Kubernetes Installation

Instructions for the Kubernetes installation are provided by the AutoOps Installation Wizard. However, examples are shown below for posterity.

Use the k8s/autoops_agent_deployment.yaml deployment configuration to install a new agent in your Kubernetes cluster.

Parameter Optional Description
autoops-token No The AutoOps Token.
autoops-otel-endpoint No The URL where OTel data is delivered for AutoOps.
ccm-api-key No The Elastic Cloud API Key that allows the cluster to be registered.
ccm-api-url Yes The Elastic Cloud endpoint that allows the cluster to be registered.
temp-resource-id No The ID used to allow the wizard to recognize when the resource has been added.
autoops-es-url No The Elasticsearch endpoint to fetch data from Elasticsearch.
es-username Yes The Elasticsearch username used to fetch data from Elasticsearch. Requires password.
es-password Yes The Elasticsearch password used to fetch data from Elasticsearch. Requires username.
es-api-key Yes The Elasticsearch API Key used to fetch data from Elasticsearch. Cannot be suppled with username or password.

Installation with Elasticsearch Basic Auth (Username / Password)

kubectl create secret generic autoops-secret \
  --from-literal=autoops-token="<Provided by AutoOps installation wizard>" \
  --from-literal=temp-resource-id="<Provided by AutoOps installation wizard>" \
  --from-literal=autoops-otel-url="<Provided by AutoOps installation wizard>" \
  --from-literal=cloud-connected-mode-api-key="<Provided by AutoOps installation wizard>" \
  --from-literal=cloud-connected-mode-api-url="<Provided by AutoOps installation wizard if needed>" \
  --from-literal=autoops-es-url="<your-es-url>" \
  --from-literal=es-username="<your-es-username>" \
  --from-literal=es-password="<your-es-password>" && \
kubectl apply -f https://raw.githubusercontent.com/elastic/autoops-install/main/k8s/autoops_agent_deployment.yaml

Installation with Elasticsearch API Key

kubectl create secret generic autoops-secret \
  --from-literal=autoops-token="<Provided by AutoOps installation wizard>" \
  --from-literal=temp-resource-id="<Provided by AutoOps installation wizard>" \
  --from-literal=autoops-otel-url="<Provided by AutoOps installation wizard>" \
  --from-literal=cloud-connected-mode-api-key="<Provided by AutoOps installation wizard>" \
  --from-literal=cloud-connected-mode-api-url="<Provided by AutoOps installation wizard if needed>" \
  --from-literal=autoops-es-url="<your-es-url>" \
  --from-literal=es-api-key="<your-es-api-key>" && \
kubectl apply -f https://raw.githubusercontent.com/elastic/autoops-install/main/k8s/autoops_agent_deployment.yaml

Linux Installation

Copy or otherwise use the script located in linux/install_autoops.sh. This script uses the Elastic Agent's installer and to install it as a service and sets the CLI parameters as configuration for it.

Use the install_autoops.sh script in order to install a new agent on your Linux machine.

Parameter Optional Description
token No The AutoOps Token.
otel-endpoint No The URL where OTel data is delivered for AutoOps.
ccm-api-key No The Elastic Cloud API Key that allows the cluster to be registered.
ccm-api-url Yes The Elastic Cloud endpoint that allows the cluster to be registered.
temp-resource-id No The ID used to allow the wizard to recognize when the resource has been added.
es-endpoint No The Elasticsearch endpoint to fetch data from Elasticsearch.
es-username Yes The Elasticsearch username used to fetch data from Elasticsearch. Requires password.
es-password Yes The Elasticsearch password used to fetch data from Elasticsearch. Requires username.
es-api-key Yes The Elasticsearch API Key used to fetch data from Elasticsearch. Cannot be suppled with username or password.
version Yes Allows the version of the Elastic Agent to be overridden.

Installation with Elasticsearch Basic Auth (Username / Password)

./install_autoops.sh \
  --token "<Provided by AutoOps installation wizard>" \
  --otel-endpoint "<Provided by AutoOps installation wizard>" \
  --ccm-api-key "<Provided by AutoOps installation wizard>" \
  --ccm-api-url "<Provided by AutoOps installation wizard if needed>" \
  --temp-resource-id "<Provided by AutoOps installation wizard>" \
  --es-endpoint "<your-es-url>" \
  --es-username "<your-es-user>" \
  --es-password "<your-es-pass>" \
  --version "<Optional>"

Installation with Elasticsearch API Key

./install_autoops.sh \
  --token "<Provided by AutoOps installation wizard>" \
  --otel-endpoint "<Provided by AutoOps installation wizard>" \
  --ccm-api-key "<Provided by AutoOps installation wizard>" \
  --ccm-api-url "<Provided by AutoOps installation wizard if needed>" \
  --temp-resource-id "<Provided by AutoOps installation wizard>" \
  --es-endpoint "<your-es-url>" \
  --es-api-key "<your-es-api-key>" \
  --version "<Optional>"

About

Installation scripts for AutoOps for Self-managed customers running Cloud Connected Mode

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages