Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

Commit 7285dda

Browse files
authored
Merge branch 'master' into k8s-autodiscover-beats
2 parents 3861cd7 + 66d5ec3 commit 7285dda

3 files changed

Lines changed: 20 additions & 17 deletions

File tree

cli/config/compose/profiles/fleet/configurations/kibana.config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ xpack.fleet.registryUrl: http://package-registry:8080
1616
xpack.fleet.agents.enabled: true
1717
xpack.fleet.agents.elasticsearch.host: http://elasticsearch:9200
1818
xpack.fleet.agents.fleet_server.hosts:
19-
- http://kibana:5601
19+
- http://fleet-server:8220
2020
xpack.fleet.agents.tlsCheckDisabled: true

cli/config/compose/profiles/fleet/docker-compose.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,22 @@ services:
4040
test: ["CMD", "curl", "-f", "http://localhost:8080"]
4141
retries: 300
4242
interval: 1s
43+
44+
fleet-server:
45+
image: "docker.elastic.co/beats/elastic-agent:${stackVersion:-8.0.0-SNAPSHOT}"
46+
depends_on:
47+
elasticsearch:
48+
condition: service_healthy
49+
kibana:
50+
condition: service_healthy
51+
healthcheck:
52+
test: "curl -f http://127.0.0.1:8220/api/status | grep HEALTHY 2>&1 >/dev/null"
53+
retries: 12
54+
interval: 5s
55+
environment:
56+
- "FLEET_SERVER_ENABLE=1"
57+
- "FLEET_SERVER_INSECURE_HTTP=1"
58+
- "KIBANA_FLEET_SETUP=1"
59+
- "KIBANA_FLEET_HOST=http://kibana:5601"
60+
- "FLEET_SERVER_HOST=0.0.0.0"
61+
- "FLEET_SERVER_PORT=8220"

e2e/_suites/fleet/ingest_manager_test.go

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -176,22 +176,6 @@ func InitializeIngestManagerTestSuite(ctx *godog.TestSuiteContext) {
176176

177177
imts.Fleet.setup()
178178

179-
// we are going to bootstrap Fleet Server in a centos container, using TAR installer, and the base version
180-
// Because it is the first agent in Fleet, there is no FleetServerHost
181-
fleetServerBaseImage := "centos"
182-
fleetServerInstallerType := "tar"
183-
fleetServerVersion := common.AgentVersionBase
184-
agentInstaller := installer.GetElasticAgentInstaller(fleetServerBaseImage, fleetServerInstallerType, fleetServerVersion, "")
185-
186-
// bootstrap Fleet Server only once: we need to set the version here
187-
imts.Fleet.Version = fleetServerVersion
188-
err = imts.Fleet.bootstrapFleetServerWithInstaller(fleetServerBaseImage, fleetServerInstallerType)
189-
if err != nil {
190-
log.WithFields(log.Fields{
191-
"installer": agentInstaller,
192-
}).Fatal("Fleet Server could not be bootstrapped")
193-
}
194-
195179
imts.StandAlone.RuntimeDependenciesStartDate = time.Now().UTC()
196180
})
197181

0 commit comments

Comments
 (0)