Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
[logstash] add 6.x example
Browse files Browse the repository at this point in the history
  • Loading branch information
jmlrt committed Oct 24, 2019
1 parent 8c334da commit 85c657b
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 0 deletions.
1 change: 1 addition & 0 deletions helpers/matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ LOGSTASH_SUITE:
- default
- oss
- elasticsearch
- 6.x
KUBERNETES_VERSION:
- '1.12'
- '1.13'
Expand Down
16 changes: 16 additions & 0 deletions logstash/examples/6.x/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
default: test

include ../../../helpers/examples.mk

RELEASE := helm-logstash-six

install:
helm upgrade --wait --timeout=600 --install $(RELEASE) --values ./values.yaml ../../

restart:
helm upgrade --set terminationGracePeriod=121 --wait --timeout=600 --install $(RELEASE) --values ./values.yaml ../../

test: install goss

purge:
helm del --purge $(RELEASE)
44 changes: 44 additions & 0 deletions logstash/examples/6.x/test/goss.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
port:
tcp:9600:
listening: true
ip:
- '0.0.0.0'

user:
logstash:
exists: true
uid: 1000
gid: 1000

http:
http://localhost:9600?pretty:
status: 200
timeout: 2000
body:
- '"host" : "helm-logstash-six-logstash-0"'
- '"version" : "6.8.4"'
- '"http_address" : "0.0.0.0:9600"'
- '"name" : "helm-logstash-six-logstash-0"'

file:
/usr/share/logstash/config/logstash.yml:
exists: true
mode: "0644"
owner: logstash
group: root
filetype: file
contains:
- 'http.host: "0.0.0.0"'
/usr/share/logstash/pipeline/logstash.conf:
exists: true
mode: "0644"
owner: logstash
group: root
filetype: file
contains:
- 'input {'
- 'beats {'
- 'port => 5044'
- 'output {'
- 'stdout {'
- 'codec => rubydebug'
3 changes: 3 additions & 0 deletions logstash/examples/6.x/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---

imageTag: "6.8.4"

0 comments on commit 85c657b

Please sign in to comment.