This repository has been archived by the owner on May 28, 2024. It is now read-only.
forked from elastic/helm-charts
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Filebeat deployment support feature (elastic#964)
Co-authored-by: Julien Mailleret <[email protected]>
- Loading branch information
1 parent
60a55aa
commit c4a37fd
Showing
11 changed files
with
1,548 additions
and
237 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
default: test | ||
|
||
include ../../../helpers/examples.mk | ||
|
||
RELEASE := helm-filebeat-deployment | ||
|
||
install: | ||
helm upgrade --wait --timeout=$(TIMEOUT) --install --values values.yaml $(RELEASE) ../../ | ||
|
||
test: install goss | ||
|
||
purge: | ||
helm del $(RELEASE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Default | ||
|
||
This example deploy Filebeat 8.0.0-SNAPSHOT using [default values][] as a Kubernetes Deployment. | ||
|
||
|
||
## Usage | ||
|
||
* Deploy [Elasticsearch Helm chart][]. | ||
|
||
* Deploy Filebeat chart with the default values: `make install` | ||
|
||
* You can now setup a port forward to query Filebeat indices: | ||
|
||
``` | ||
kubectl port-forward svc/elasticsearch-master 9200 | ||
curl localhost:9200/_cat/indices | ||
``` | ||
|
||
|
||
## Testing | ||
|
||
You can also run [goss integration tests][] using `make test` | ||
|
||
|
||
[elasticsearch helm chart]: https://github.com/elastic/helm-charts/tree/master/elasticsearch/examples/default/ | ||
[goss integration tests]: https://github.com/elastic/helm-charts/tree/master/filebeat/examples/deployment/test/goss.yaml | ||
[default values]: https://github.com/elastic/helm-charts/tree/master/filebeat/values.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
http: | ||
http://elasticsearch-master:9200/_cat/indices: | ||
status: 200 | ||
timeout: 2000 | ||
body: | ||
- 'filebeat-8.0.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
deployment: | ||
enabled: true | ||
|
||
daemonset: | ||
enabled: false | ||
|
||
filebeatConfig: | ||
filebeat.yml: | | ||
filebeat.inputs: | ||
- type: log | ||
paths: | ||
- /usr/share/filebeat/logs/filebeat | ||
output.elasticsearch: | ||
host: '${NODE_NAME}' | ||
hosts: '${ELASTICSEARCH_HOSTS:elasticsearch-master:9200}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.