I've used the code mentioned below, and when i log into one of the agents and do ./elastic-agent status
i get the following error
and the logs for kibana states
sample code
apiVersion: v1
kind: ConfigMap
metadata:
name: agent-node-datastreams
namespace: elastic
labels:
k8s-app: elastic-agent-standalone
data:
agent.yml: |-
outputs:
default:
type: elasticsearch
protocol: https
ssl.verification_mode: 'none'
allow_older_versions: true
hosts:
- >-
${ES_HOST}
username: ${ES_USERNAME}
password: ${ES_PASSWORD}
agent:
monitoring:
enabled: true
use_output: default
logs: true
metrics: false
providers.kubernetes:
node: ${NODE_NAME}
scope: node
inputs:
- id: heartbeat
type: synthetics
use_output: default
data_stream:
namespace: heartbeat
streams:
- data_stream:
dataset: heartbeat
type: synthetics
hosts: ["x.x.x.x"]
schedule: '@every 3s'
timeout: 16s
check.response.status: [200]
any response on this would be much appreciated by this novice.