# How to create ingest pipeline for elasticsearch in kubernetes context?

**URL:** https://discuss.elastic.co/t/how-to-create-ingest-pipeline-for-elasticsearch-in-kubernetes-context/263130
**Category:** Elasticsearch
**Created:** [February 3, 2021, 2:15pm UTC](https://discuss.elastic.co/t/how-to-create-ingest-pipeline-for-elasticsearch-in-kubernetes-context/263130 "2021-02-03T14:15:55Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![eeijlar](https://avatars.discourse-cdn.com/v4/letter/e/96bed5/32.png) [@eeijlar](https://discuss.elastic.co/u/eeijlar)
#### Post date: [February 3, 2021, 2:15pm UTC](https://discuss.elastic.co/t/how-to-create-ingest-pipeline-for-elasticsearch-in-kubernetes-context/263130/1 "2021-02-03T14:15:55Z")

</div>

I am shipping a csv file from filebeat to elasticsearch. I understand that I need to use an ingest pipeline to parse the csv data prior to it being stored in elastic, similar to what is described in this [answer](https://discuss.elastic.co/t/csv-files-from-filebeat-to-elasticsearch/229492/2)

From what I understand, you have to run a curl command to create the pipeline in elasticsearch, something like:

`curl -XPUT "$CLOUD_URL/_ingest/pipeline/bano" -u elastic:$CLOUD_PASSWORD -H 'Content-Type: application/json' -d'@cloud/ingest-bano.json' ; echo`

I am just wondering how is this done in a kubernetes context, there is nowhere I can put a curl command in the container setup, everything is based off configuration files.

I am just wondering how to do this when filebeat and elasticsearch are running in kubernetes.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [March 3, 2021, 2:16pm UTC](https://discuss.elastic.co/t/how-to-create-ingest-pipeline-for-elasticsearch-in-kubernetes-context/263130/2 "2021-03-03T14:16:24Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
