some unfinished and untested work over helm mirror
This commit is contained in:
13
config/helm/scraper/test/examples/default/Makefile
Normal file
13
config/helm/scraper/test/examples/default/Makefile
Normal file
@@ -0,0 +1,13 @@
|
||||
default: test
|
||||
|
||||
include ../../../helpers/examples.mk
|
||||
|
||||
RELEASE := helm-apm-server-default
|
||||
|
||||
install:
|
||||
helm upgrade --wait --timeout=$(TIMEOUT) --install $(RELEASE) ../../
|
||||
|
||||
test: install goss
|
||||
|
||||
purge:
|
||||
helm del $(RELEASE)
|
||||
27
config/helm/scraper/test/examples/default/README.md
Normal file
27
config/helm/scraper/test/examples/default/README.md
Normal file
@@ -0,0 +1,27 @@
|
||||
# Default
|
||||
|
||||
This example deploy APM Server 8.5.1 using [default values][].
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
* Deploy [Elasticsearch Helm chart][].
|
||||
|
||||
* Deploy APM Server chart with the default values: `make install`
|
||||
|
||||
* You can now setup a port forward to query APM 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/main/elasticsearch/examples/default/
|
||||
[goss integration tests]: https://github.com/elastic/helm-charts/tree/main/apm-server/examples/default/test/goss.yaml
|
||||
[default values]: https://github.com/elastic/helm-charts/tree/main/apm-server/values.yaml
|
||||
6
config/helm/scraper/test/examples/default/test/goss.yaml
Normal file
6
config/helm/scraper/test/examples/default/test/goss.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
http:
|
||||
http://localhost:8200?pretty:
|
||||
status: 200
|
||||
timeout: 2000
|
||||
body:
|
||||
- "8.5.1"
|
||||
Reference in New Issue
Block a user