agent.k8s.elastic.co/v1alpha1edit

Package v1alpha1 contains API Schema definitions for the agent v1alpha1 API group

Resource Types

Agentedit

Agent is the Schema for the Agents API.

Field Description

apiVersion string

agent.k8s.elastic.co/v1alpha1

kind string

Agent

metadata ObjectMeta

Refer to Kubernetes API documentation for fields of metadata.

spec AgentSpec

AgentMode (string)edit

AgentSpecedit

AgentSpec defines the desired state of the Agent

Field Description

version string

Version of the Agent.

elasticsearchRefs Output array

ElasticsearchRefs is a reference to a list of Elasticsearch clusters running in the same Kubernetes cluster. Due to existing limitations, only a single ES cluster is currently supported.

image string

Image is the Agent Docker image to deploy. Version has to match the Agent in the image.

config Config

Config holds the Agent configuration. At most one of [Config, ConfigRef] can be specified.

configRef ConfigSource

ConfigRef contains a reference to an existing Kubernetes Secret holding the Agent configuration. Agent settings must be specified as yaml, under a single "agent.yml" entry. At most one of [Config, ConfigRef] can be specified.

secureSettings SecretSource

SecureSettings is a list of references to Kubernetes Secrets containing sensitive configuration options for the Agent. Secrets data can be then referenced in the Agent config using the Secret’s keys or as specified in Entries field of each SecureSetting.

serviceAccountName string

ServiceAccountName is used to check access from the current resource to an Elasticsearch resource in a different namespace. Can only be used if ECK is enforcing RBAC on references.

daemonSet DaemonSetSpec

DaemonSet specifies the Agent should be deployed as a DaemonSet, and allows providing its spec. Cannot be used along with deployment.

deployment DeploymentSpec

Deployment specifies the Agent should be deployed as a Deployment, and allows providing its spec. Cannot be used along with daemonSet.

http HTTPConfig

HTTP holds the HTTP layer configuration for the Agent in Fleet mode with Fleet Server enabled.

mode AgentMode

Mode specifies the source of configuration for the Agent. The configuration can be specified locally through config or configRef (standalone mode), or come from Fleet during runtime (fleet mode). Defaults to standalone mode.

fleetServerEnabled boolean

FleetServerEnabled determines whether this Agent will launch Fleet Server. Don’t set unless mode is set to fleet.

kibanaRef ObjectSelector

KibanaRef is a reference to Kibana where Fleet should be set up and this Agent should be enrolled. Don’t set unless mode is set to fleet.

fleetServerRef ObjectSelector

FleetServerRef is a reference to Fleet Server that this Agent should connect to to obtain it’s configuration. Don’t set unless mode is set to fleet.

DaemonSetSpecedit

Field Description

podTemplate PodTemplateSpec

updateStrategy DaemonSetUpdateStrategy

DeploymentSpecedit

Field Description

podTemplate PodTemplateSpec

replicas integer

strategy DeploymentStrategy

Outputedit

Field Description

ObjectSelector ObjectSelector

outputName string