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

Add cloudbeat.spec to DRA #2480

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95 changes: 95 additions & 0 deletions cloudbeat.spec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
version: 2
inputs:
- name: cloudbeat
description: "Cloudbeat"
platforms: &platforms
- linux/amd64
- linux/arm64
- darwin/amd64
- darwin/arm64
- container/amd64
- container/arm64
outputs: &outputs
- elasticsearch
- kafka
- logstash
- redis
command: &command
restart_monitoring_period: 5s
maximum_restarts_per_period: 1
timeouts:
restart: 1s
args:
- "-E"
- "setup.ilm.enabled=false"
- "-E"
- "setup.template.enabled=false"
- "-E"
- "management.enabled=true"
- "-E"
- "management.restart_on_output_change=true"
- "-E"
- "logging.level=info"
- "-E"
- "logging.to_stderr=true"
- "-E"
- "gc_percent=${CLOUDBEAT_GOGC:100}"
- "-E"
- "logging.event_data.to_stderr=true"
- "-E"
- "logging.event_data.to_files=false"
isolate_units: true
- name: cloudbeat/cis_k8s
description: "CIS Kubernetes monitoring"
platforms: *platforms
outputs: *outputs
command: *command
isolate_units: true
- name: cloudbeat/cis_eks
description: "CIS elastic Kubernetes monitoring"
platforms: *platforms
outputs: *outputs
command: *command
isolate_units: true
- name: cloudbeat/cis_aws
description: "CIS AWS monitoring"
platforms: *platforms
outputs: *outputs
command: *command
isolate_units: true
- name: cloudbeat/cis_gcp
description: "CIS GCP monitoring"
platforms: *platforms
outputs: *outputs
command: *command
isolate_units: true
- name: cloudbeat/cis_azure
description: "CIS AZURE monitoring"
platforms: *platforms
outputs: *outputs
command: *command
isolate_units: true
- name: cloudbeat/vuln_mgmt_aws
description: "AWS Vulnerabilities management"
platforms: *platforms
outputs: *outputs
command: *command
isolate_units: true
- name: cloudbeat/asset_inventory_aws
description: "AWS Asset Inventory Discovery"
platforms: *platforms
outputs: *outputs
command: *command
isolate_units: true
- name: cloudbeat/asset_inventory_azure
description: "Azure Asset Inventory Discovery"
platforms: *platforms
outputs: *outputs
command: *command
isolate_units: true
- name: cloudbeat/asset_inventory_gcp
description: "GCP Asset Inventory Discovery"
platforms: *platforms
outputs: *outputs
command: *command
isolate_units: true
1 change: 1 addition & 0 deletions deploy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ RUN set -x && \

COPY ./cloudbeat /cloudbeat
COPY ./cloudbeat.yml /cloudbeat.yml
COPY ./cloudbeat.spec.yml /cloudbeat.spec.yml
COPY ./bundle.tar.gz /bundle.tar.gz

ENTRYPOINT ["/cloudbeat"]
Expand Down
1 change: 1 addition & 0 deletions deploy/Dockerfile.debug
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ EXPOSE 8080

COPY ./cloudbeat /cloudbeat
COPY ./cloudbeat.yml /cloudbeat.yml
COPY ./cloudbeat.spec.yml /cloudbeat.spec.yml
COPY ./bundle.tar.gz /bundle.tar.gz

ENTRYPOINT ["/go/bin/dlv", "--listen=:40000", "--headless=true", "--api-version=2", "--wd=/", "exec", "/cloudbeat"]
Expand Down
1 change: 1 addition & 0 deletions scripts/packaging/docker/elastic-agent/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ FROM ${ELASTIC_AGENT_IMAGE} as elastic_agent_cloudbeat
COPY --chown=elastic-agent:elastic-agent --chmod=755 cloudbeat /tmp/components/cloudbeat
COPY --chown=elastic-agent:elastic-agent --chmod=666 bundle.tar.gz /tmp/components/bundle.tar.gz
COPY --chown=elastic-agent:elastic-agent --chmod=644 cloudbeat.yml /tmp/components/cloudbeat.yml
COPY --chown=elastic-agent:elastic-agent --chmod=644 cloudbeat.spec.yml /tmp/components/cloudbeat.spec.yml

RUN mv /tmp/components/* "$(dirname "$(realpath "$(which elastic-agent)")")"/components/

Expand Down
Loading