This repository has been archived by the owner on May 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #121 from elastic/beam_em_up
Add integration tests and other tweaks for filebeat
- Loading branch information
Showing
37 changed files
with
388 additions
and
84 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
|
||
clusterName: "six" | ||
imageTag: "6.7.1" | ||
imageTag: "6.7.2" | ||
esMajorVersion: 6 |
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,12 @@ | ||
default: test | ||
include ../../../helpers/examples.mk | ||
|
||
RELEASE := helm-es-oss | ||
|
||
install: | ||
helm upgrade --wait --timeout=600 --install $(RELEASE) --values ./values.yaml ../../ ; \ | ||
|
||
test: install goss | ||
|
||
purge: | ||
helm del --purge $(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,17 @@ | ||
http: | ||
http://localhost:9200/_cluster/health: | ||
status: 200 | ||
timeout: 2000 | ||
body: | ||
- 'green' | ||
- '"number_of_nodes":3' | ||
- '"number_of_data_nodes":3' | ||
|
||
http://localhost:9200: | ||
status: 200 | ||
timeout: 2000 | ||
body: | ||
- '"number" : "7.0.1"' | ||
- '"cluster_name" : "oss"' | ||
- '"name" : "oss-master-0"' | ||
- 'You Know, for Search' |
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,4 @@ | ||
--- | ||
|
||
clusterName: "oss" | ||
image: "docker.elastic.co/elasticsearch/elasticsearch-oss" |
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 |
---|---|---|
|
@@ -4,8 +4,8 @@ maintainers: | |
- email: [email protected] | ||
name: Elastic | ||
name: filebeat | ||
version: 7.0.0-alpha1 | ||
appVersion: 7.0.0 | ||
version: 7.0.1-alpha1 | ||
appVersion: 7.0.1 | ||
sources: | ||
- https://github.com/elastic/beats | ||
icon: https://helm.elastic.co/icons/filebeat.png |
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-six | ||
|
||
install: | ||
helm upgrade --wait --timeout=600 --install $(RELEASE) --values values.yaml ../../ | ||
|
||
test: install goss | ||
|
||
purge: | ||
helm del --purge $(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,21 @@ | ||
port: | ||
tcp:5066: | ||
listening: true | ||
ip: | ||
- '127.0.0.1' | ||
|
||
mount: | ||
/usr/share/filebeat/data: | ||
exists: true | ||
user: | ||
filebeat: | ||
exists: true | ||
uid: 1000 | ||
gid: 1000 | ||
|
||
http: | ||
http://six-master:9200/_cat/indices: | ||
status: 200 | ||
timeout: 2000 | ||
body: | ||
- 'filebeat-6.7.2' |
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,5 @@ | ||
imageTag: 6.7.2 | ||
|
||
extraEnvs: | ||
- name: ELASTICSEARCH_HOSTS | ||
value: six-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
This file was deleted.
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-oss | ||
|
||
install: | ||
helm upgrade --wait --timeout=600 --install $(RELEASE) --values values.yaml ../../ | ||
|
||
test: install goss | ||
|
||
purge: | ||
helm del --purge $(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,22 @@ | ||
port: | ||
tcp:5066: | ||
listening: true | ||
ip: | ||
- '127.0.0.1' | ||
|
||
mount: | ||
/usr/share/filebeat/data: | ||
exists: true | ||
|
||
user: | ||
filebeat: | ||
exists: true | ||
uid: 1000 | ||
gid: 1000 | ||
|
||
http: | ||
http://oss-master:9200/_cat/indices: | ||
status: 200 | ||
timeout: 2000 | ||
body: | ||
- 'filebeat-7.0.1' |
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,5 @@ | ||
image: docker.elastic.co/beats/filebeat-oss | ||
|
||
extraEnvs: | ||
- name: ELASTICSEARCH_HOSTS | ||
value: oss-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
default: test | ||
|
||
include ../../../helpers/examples.mk | ||
|
||
RELEASE := helm-filebeat-security | ||
|
||
install: | ||
helm upgrade --wait --timeout=600 --install $(RELEASE) --values values.yaml ../../ | ||
|
||
test: install goss | ||
|
||
purge: | ||
helm del --purge $(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,9 @@ | ||
http: | ||
https://security-master:9200/_cat/indices: | ||
status: 200 | ||
timeout: 2000 | ||
body: | ||
- 'filebeat-7.0.1' | ||
allow-insecure: true | ||
username: '{{ .Env.ELASTICSEARCH_USERNAME }}' | ||
password: '{{ .Env.ELASTICSEARCH_PASSWORD }}' |
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,34 @@ | ||
filebeatConfig: | ||
filebeat.yml: | | ||
filebeat.inputs: | ||
- type: docker | ||
containers.ids: | ||
- '*' | ||
processors: | ||
- add_kubernetes_metadata: | ||
in_cluster: true | ||
output.elasticsearch: | ||
username: '${ELASTICSEARCH_USERNAME}' | ||
password: '${ELASTICSEARCH_PASSWORD}' | ||
protocol: https | ||
hosts: ["security-master:9200"] | ||
ssl.certificate_authorities: | ||
- /usr/share/filebeat/config/certs/elastic-certificate.pem | ||
secretMounts: | ||
- name: elastic-certificate-pem | ||
secretName: elastic-certificate-pem | ||
path: /usr/share/filebeat/config/certs | ||
|
||
extraEnvs: | ||
- name: 'ELASTICSEARCH_USERNAME' | ||
valueFrom: | ||
secretKeyRef: | ||
name: elastic-credentials | ||
key: username | ||
- name: 'ELASTICSEARCH_PASSWORD' | ||
valueFrom: | ||
secretKeyRef: | ||
name: elastic-credentials | ||
key: password |
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 |
---|---|---|
@@ -1,4 +1,2 @@ | ||
1. Watch all cluster members come up. | ||
1. Watch all containers come up. | ||
$ kubectl get pods --namespace={{ .Release.Namespace }} -l app={{ template "fullname" . }} -w | ||
2. Test cluster health using Helm test. | ||
$ helm test {{ .Release.Name }} |
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
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.