# Customized Connector Client running in Kubernetes

**URL:** <https://discuss.elastic.co/t/customized-connector-client-running-in-kubernetes/347200>\
**Category:** Elastic Search\
**Tags:** docker, elastic-app-search\
**Created:** [November 15, 2023, 8:48am UTC](https://discuss.elastic.co/t/customized-connector-client-running-in-kubernetes/347200 "2023-11-15T08:48:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebastianboelling](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@sebastianboelling](https://discuss.elastic.co/u/sebastianboelling)\
**Post date:** [November 15, 2023, 8:48am UTC](https://discuss.elastic.co/t/customized-connector-client-running-in-kubernetes/347200/1 "2023-11-15T08:48:38Z")

</div>

Hi,

has somebody experiences or examples of how to run a customized or self developed connector client in Kubernetes?

There is a good documentation starting point for Docker at [connectors/docs/DOCKER.md at main · elastic/connectors · GitHub](https://github.com/elastic/connectors/blob/main/docs/DOCKER.md)

But for Kubernetes I've to create a complete new Container including the URL to Elasticsearch and the API keys, etc. and run it as Pod.

The samples only show how to start in an Docker environment and reference local config files.

Regards

Sebastian

---

<div class="post-metadata">

**Author:** ![Jedr\_Blaszyk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jedr_blaszyk/32/127637_2.png) [@Jedr\_Blaszyk](https://discuss.elastic.co/u/Jedr_Blaszyk)\
**Post date:** [November 16, 2023, 9:08am UTC](https://discuss.elastic.co/t/customized-connector-client-running-in-kubernetes/347200/2 "2023-11-16T09:08:02Z")

</div>

Hi Sebastian,

ConfigMaps in Kubernetes can be used for managing configuration files like the one you have for Docker.

You can create a ConfigMap from your existing `config.yml` file with:

```auto
kubectl create configmap connectors-config --from-file=config.yml=path/to/your/config.yml

```

Here are reference [k8s docs](https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/) that explain how to configure ConfigMap in detail.

I tested the setup with a simple deployment file:

```yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: elastic-connector
spec:
  replicas: 1
  selector:
    matchLabels:
      app: elastic-connector
  template:
    metadata:
      labels:
        app: elastic-connector
    spec:
      containers:
        - name: connector
          image: docker.elastic.co/enterprise-search/elastic-connectors:8.11.1.0
          args: ["/app/bin/elastic-ingest", "-c", "/config/config.yml"]
          volumeMounts:
            - name: config-volume
              mountPath: /config
      volumes:
        - name: config-volume
          configMap:
            name: connectors-config

```

The pod running the connector service in a local k8s cluster was configured and able to ingest some data to ES running in the cloud.

I hope this helps. We will work to improve docs around the k8s configuration.

Have a great day,  
Jedr

---

<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:** [December 14, 2023, 9:08am UTC](https://discuss.elastic.co/t/customized-connector-client-running-in-kubernetes/347200/3 "2023-12-14T09:08:08Z")

</div>

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