<p>I'm able to install elasticseach and kibana, both are up and running. In Kibana dashboard APM server is setup, and indices are showing up.</p>
<p>I am getting the following error for APM-Agent when I trace the log.
ERROR co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Error trying to connect to APM Server. Some details about SSL configurations corresponding the current connection are logged at INFO level.</p>
<p>ERROR co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Failed to handle event of type JSON_WRITER withthis error: connect timed out</p>
<p>APM-Agent Yaml File</p>
<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
name: deployment
namespace: blogdemodeployments
spec:  
selector:
matchLabels:
app: azuretest
template:
metadata:
labels:
app: azuretest
spec:
containers:
      - name: apm-agent-container
image: dockerid/application-service
volumeMounts:
        - name: shared-data
mountPath: /usr/share/app/
ports:
        - containerPort: 6000
name: http
protocol: TCP
env:
        - name: SERVER_URL
value: &quot;http://40.83.185.238:8200&quot;
      - name: filebeat-container
image: docker.elastic.co/beats/filebeat:7.10.0
volumeMounts:
        - name: shared-data
mountPath: /usr/share/filebeat/filebeat.yml

volumes:
      - name: shared-data
azureFile:
secretName: storage-secret
shareName: myfileshare
readOnly: false
 
---
kind: Service
apiVersion: apps/v1
metadata:
name: apmfb
namespace: blogdemodeployments
spec:
type: LoadBalancer
selector:
app: apmfb
ports:
    - name: http
protocol: TCP
port: 6000
targetPort: 6000

</code></pre>
<p>ElasticSearch Yaml</p>
<pre><code>---
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
  name: quickstart
  labels:
    component: elasticsearch
spec:
  version: 7.10.2
  http:
    service:
      spec:
        type: LoadBalancer
  nodeSets:
  - name: default
    count: 1
    config:
      node.master: true
      node.data: true
      node.ingest: true
      node.store.allow_mmap: false
</code></pre>
<p>Kibana Yaml</p>
<pre><code>---
apiVersion: kibana.k8s.elastic.co/v1
kind: Kibana
metadata:
  name: quickstart
spec:
  version: 7.10.2 #Make sure Kibana and Elasticsearch are on the same version.
  http:
    service:
      spec:
        type: LoadBalancer #Adds a External IP
    tls:
      selfSignedCertificate:
        disabled: true
  count: 1
  elasticsearchRef:
    name: quickstart

</code></pre>
<p>APM Server Yaml</p>
<pre><code>---
apiVersion: apm.k8s.elastic.co/v1
kind: ApmServer
metadata:
  name: apm-new-quickstart
  namespace: default
spec:
  version: 7.10.2
  count: 1
  http:
    service:
      spec:
        type: LoadBalancer
    tls:
      selfSignedCertificate:
        disabled: true
  config:
    output:
      elasticsearch:
        enabled: true
        hosts: [&quot;https://52.224.33.53:9200&quot;]
        username: &quot;elastic&quot;
        password: &quot;XXXXXXXXXXXXXXXXXXXX&quot;
    logging:
      level: debug
      to_files: false
      to_stderr: true
    apm-server:
      hosts: &quot;0.0.0.0:8200&quot;


</code></pre>

Jack Smith
<p>That error indicates the agent can't connect to apm-server.  <code>SERVER_URL</code> should be <code>ELASTIC_APM_SERVER_URL</code> in the apm-agent-container env.</p>
