# Add apm-server in helm with eck-operator

**URL:** <https://discuss.elastic.co/t/add-apm-server-in-helm-with-eck-operator/300997>\
**Category:** APM\
**Tags:** docker, server\
**Created:** [March 29, 2022, 5:33pm UTC](https://discuss.elastic.co/t/add-apm-server-in-helm-with-eck-operator/300997 "2022-03-29T17:33:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raushan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raushan/32/102180_2.png) [@Raushan](https://discuss.elastic.co/u/Raushan)\
**Post date:** [March 29, 2022, 5:33pm UTC](https://discuss.elastic.co/t/add-apm-server-in-helm-with-eck-operator/300997/1 "2022-03-29T17:33:08Z")

</div>

We have an existing helm chart where we use to do helm install eck operator `docker.elastic.co/eck/eck-operator:2.0.0`  
Then we have chart in which we have Elasticsearch, kibana yaml file with roles and fluentd dependencies, Structure looks lie this  
[![enter image description here](https://i.stack.imgur.com/mhXy7.png)](https://i.stack.imgur.com/mhXy7.png)

Now i'm **adding apm-server yaml file and hoping to get deployed along with other services, but its is not getting deployed**.  
**apm-server.yaml**

```auto
apiVersion: apm.k8s.elastic.co/v1
kind: ApmServer
metadata:
  name: {{ .Release.Name }}
  namespace: {{ .Release.Namespace }}
spec:
  type: ApmServer
  version: {{ .Values.elasticStackVersion }}
  count: 1
  elasticsearchRef:
    name: {{ .Release.Name }}
    #name: "es-cluster"
  kibanaRef:
    name: {{ .Release.Name }}
    #name: "kibana"
  podTemplate:
    spec:
      containers:
        - name: {{ .Release.Name }}
        #- name: apm-server
          resources:
            limits:
              memory: 1Gi
              cpu: 1

```

**values.yaml file**

```auto
elasticStackVersion: 8.0.0

elasticsearch:
  image: euaappcorecr.azurecr.io/elasticsearch
  replicaCount: 2
  storageClassName: default
  service:
    type: ClusterIP

kibana:
  image: euaappcorecr.azurecr.io/kibana
  service:
    type: LoadBalancer
    annotations:
      service.beta.kubernetes.io/azure-load-balancer-internal: "true"
      service.beta.kubernetes.io/azure-load-balancer-internal-subnet: "Lb_External_IP"

metricbeat:
  enabled: false
  image: euaappinfracr.azurecr.io/metricbeat

ApmServer:
  image:
    repository: euaappcorecr.azurecr.io/apm-server
    tag: 8.0.0
    pullPolicy: IfNotPresent
  service:
    type: ClusterIP

fluentd:
  image:
    registry: euaappinfracr.azurecr.io
    repository: fluentd
    tag: bitnami-1.11.5
  forwarder:
    enabled: false
  aggregator:
    enabled: true
    configMap: elasticsearch-output
    persistence:
      enabled: true    
      storageClass: default
      size: 5Gi

```

cmd: ` helm install efk-dev . -n efk-dev --create-namespace --dependency-update -f values.yaml`

Same question is asked in stackoverflow also:

> <https://stackoverflow.com/questions/71666339/add-apm-server-in-helm-with-eck-operator>

---

<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:** [April 19, 2022, 1:33pm UTC](https://discuss.elastic.co/t/add-apm-server-in-helm-with-eck-operator/300997/2 "2022-04-19T13:33:40Z")

</div>

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