-
Notifications
You must be signed in to change notification settings - Fork 708
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
How about add Ingest CRD for Elasticsearch. #3127
Comments
I want to deploy elk on k8s, but use ingest feature of elasticsearch in stead of logstash. The problem is I can use k8s yaml to configure elasticsearch and filebeat. But I must use es restful api to create If eck operator can define Ingest CRD, which can auto create ingests in elasticsearch, then I can deploy the whole stack automatically. Put ingest config in I use two ingest pipeline in the following config. ---
apiVersion: v1
kind: ConfigMap
metadata:
name: filebeat-config
namespace: elastic-system
labels:
k8s-app: filebeat
data:
filebeat.yml: |-
filebeat.autodiscover.providers:
- type: kubernetes
node: ${NODE_NAME}
hints.enabled: true
templates:
- condition:
equals:
kubernetes.container.name: nginx-ingress-controller
config:
- type: container
paths:
- /var/log/containers/*${data.kubernetes.container.id}.log
pipeline: nginx
- condition:
equals:
kubernetes.labels.lang: java
config:
- type: container
paths:
- /var/log/containers/*${data.kubernetes.container.id}.log
pipeline: my_java_app |
Currently we have no plans to introduce such CRD - it seems to me that it'd target too narrow category of ES APIs. We are thinking about your and similar use cases though - for now, best bet is to follow issues that were linked. |
To follow up, "CRDs" like for terraform have been released https://www.elastic.co/blog/streamline-configuration-processes-with-official-elastic-stack-terraform-provider |
Then we can define pipelines in k8s config files.
The text was updated successfully, but these errors were encountered: