Skip to content

Commit 5cfb411

Browse files
authored
Add Fleet Server install steps on K8s and Docker (#1184)
* Add Fleet Server install steps on K8s and Docker * fixup * Update docs/en/ingest-management/elastic-agent/running-on-kubernetes-managed-by-fleet.asciidoc * Update docs/en/ingest-management/elastic-agent/elastic-agent-container.asciidoc
1 parent 8cdfa06 commit 5cfb411

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

docs/en/ingest-management/elastic-agent/elastic-agent-container.asciidoc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,18 @@ docker run --rm docker.elastic.co/elastic-agent/elastic-agent:{version} elastic-
9595

9696
include::{ingest-docs-root}/docs/en/ingest-management/tab-widgets/run-agent-image/widget.asciidoc[]
9797

98+
If you need to run {fleet-server} as well, adjust the `docker run` command above by adding these environment variables:
99+
100+
[source,yaml]
101+
----
102+
--env FLEET_SERVER_ENABLE=true \ <1>
103+
--env FLEET_SERVER_ELASTICSEARCH_HOST=<elasticsearch-host> \ <2>
104+
--env FLEET_SERVER_SERVICE_TOKEN=<service-token> <3>
105+
----
106+
<1> Set to `true` to bootstrap {fleet-server} on this {agent}. This automatically forces {fleet} enrollment as well.
107+
<2> The Elasticsearch host for Fleet Server to communicate with, for example `http://elasticsearch:9200`.
108+
<3> Service token to use for communication with {es} and {kib}.
109+
98110
[TIP]
99111
.Running {agent} on a read-only file system
100112
====

docs/en/ingest-management/elastic-agent/running-on-kubernetes-managed-by-fleet.asciidoc

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,22 @@ To specify different destination/credentials, change the following parameters in
6767
<5> The basic authentication username used to connect to {kib} and retrieve a `service_token` to enable {fleet}.
6868
<6> The basic authentication password used to connect to {kib} and retrieve a `service_token` to enable {fleet}.
6969

70-
Refer to <<agent-environment-variables>> for all available options.
70+
If you need to run {fleet-server} as well, adjust the `docker run` command above by adding these environment variables:
71+
72+
[source,yaml]
73+
------------------------------------------------
74+
- name: FLEET_SERVER_ENABLE
75+
value: "true" <1>
76+
- name: FLEET_SERVER_ELASTICSEARCH_HOST
77+
value: "<elasticsearch-host>" <2>
78+
- name: FLEET_SERVER_SERVICE_TOKEN
79+
value: "<service-token>" <3>
80+
------------------------------------------------
81+
<1> Set to `true` to bootstrap {fleet-server} on this {agent}. This automatically forces {fleet} enrollment as well.
82+
<2> The Elasticsearch host for Fleet Server to communicate with, for example `http://elasticsearch:9200`.
83+
<3> Service token to use for communication with {es} and {kib}.
7184

85+
Refer to <<agent-environment-variables>> for all available options.
7286

7387
[discrete]
7488
== Step 4: Configure tolerations

0 commit comments

Comments
 (0)