Skip to content

Support api-key - elasticsearchRefs - monitoring + output #7942

Open

Description

Proposal

It would be great if we could also use the api-key authentication method for the external Elasticsearch destinations and also the monitoring ones.
This would simplify the usage and its deployment.

- `api-key`: the key to authenticate against the Elastic resource instead of a username and password (supported only for `elasticsearchRefs` in AgentSpec and in BeatSpec)

Details:

  • ECK version: 2.13

  • Resource definition:

---
apiVersion: v1
kind: Secret
metadata:
  name: ext-es
stringData:
  url: https://XXXXX.elastic-cloud.com:9243
  api-key: XXXX
---
apiVersion: logstash.k8s.elastic.co/v1alpha1
kind: Logstash
metadata:
  name: logstash
spec:
  count: 1
  version: 8.14.3
  config:
    log.level: info
  elasticsearchRefs:
    - clusterName: ext-es
      secretName: ext-es
  monitoring:
    metrics:
      elasticsearchRefs:
        - secretName: ext-es
    logs:
      elasticsearchRefs:
        - secretName: ext-es
  podTemplate:
    spec:
      containers:
        - name: logstash
---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    >enhancementEnhancement of existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions