-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Add working examples for running Elasticsearch and Kibana on ope… #263
Changes from 1 commit
77cac6a
e702047
e35f692
2aa87a8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
default: test | ||
include ../../../helpers/examples.mk | ||
|
||
RELEASE := elasticsearch | ||
|
||
template: | ||
helm template --values ./values.yaml ../../ | ||
|
||
install: | ||
helm upgrade --wait --timeout=600 --install $(RELEASE) --values ./values.yaml ../../ ; \ | ||
|
||
test: install goss | ||
|
||
purge: | ||
helm del --purge $(RELEASE) |
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.3.0"' | ||
- '"cluster_name" : "elasticsearch"' | ||
- '"name" : "elasticsearch-master-0"' | ||
- 'You Know, for Search' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
|
||
securityContext: | ||
runAsUser: null | ||
|
||
podSecurityContext: | ||
fsGroup: null | ||
|
||
sysctlInitContainer: | ||
enabled: false |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
default: test | ||
include ../../../helpers/examples.mk | ||
|
||
RELEASE := kibana | ||
|
||
template: | ||
helm template --values ./values.yml ../../ | ||
|
||
install: | ||
helm upgrade --wait --timeout=600 --install --values ./values.yml $(RELEASE) ../../ ; \ | ||
Crazybus marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
test: install goss | ||
|
||
purge: | ||
helm del --purge $(RELEASE) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
http: | ||
http://localhost:5601/app/kibana: | ||
status: 200 | ||
timeout: 2000 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
|
||
fsGroup: null | ||
runAsUser: null | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't we have the same structure as in
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It would be nice indeed, but trying to keep the charts identical for every change is quite the challenge. For backwards compatibility reasons the Elasticsearch chart does actually still support There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Isn't this already the case in kibana/values.yaml#L57-L66?
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You are 100% right. I could have sworn this was working before my holiday. When I ran |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we have
; \
at the end of the line?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed! Guessing it was leftover from a copy paste where it is doing multiple commands.