Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions config/recipes/elastic-agent/README.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ Deploys two Elasticsearch clusters and two Kibana instances together with single

Deploys Elastic Agent as a DaemonSet in Fleet mode with System and Kubernetes integrations enabled. System integration collects syslog logs, auth logs and system metrics (for CPU, I/O, filesystem, memory, network, process and others). Kubernetes integrations collects API server, Container, Event, Node, Pod, Volume and system metrics.

===== System and Kubernetes integrations running as non-root - `fleet-kubernetes-integration-nonroot.yaml`

The provided example is functionally identical to the previous section but runs the Elastic Agent processes (both the Elastic Agent running as the Fleet server and the Elastic Agent connected to Fleet) as a non-root user by utilizing a DaemonSet to ensure directory and file permissions. *Note* The DaemonSet itself must run as root to set up permissions and ECK >= 2.10.0 is required.

===== Custom logs integration with autodiscover - `fleet-custom-logs-integration.yaml`

Deploys Elastic Agent as a DaemonSet in Fleet mode with Custom Logs integration enabled. Collects logs from all Pods in the `default` namespace using autodiscover feature.
Expand Down
325 changes: 0 additions & 325 deletions config/recipes/elastic-agent/fleet-kubernetes-integration-nonroot.yaml

This file was deleted.

12 changes: 8 additions & 4 deletions config/recipes/elastic-agent/fleet-kubernetes-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,10 @@ spec:
spec:
serviceAccountName: fleet-server
automountServiceAccountToken: true
securityContext:
runAsUser: 0
# Since Elastic Agent v8.16.0, the runAsUser: 0 is not needed
# as Agent chowns the data directory to the container user id.
# securityContext:
# runAsUser: 0
---
apiVersion: agent.k8s.elastic.co/v1alpha1
kind: Agent
Expand Down Expand Up @@ -114,8 +116,10 @@ spec:
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
automountServiceAccountToken: true
securityContext:
runAsUser: 0
# Since Elastic Agent v8.16.0, the runAsUser: 0 is not needed
# as Agent chowns the data directory to the container user id.
# securityContext:
# runAsUser: 0
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
Expand Down
Loading
Loading