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

Commit

Permalink
[logstash] add readme for examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jmlrt committed Apr 28, 2020
1 parent 5a5102f commit 38ce347
Show file tree
Hide file tree
Showing 5 changed files with 89 additions and 15 deletions.
25 changes: 10 additions & 15 deletions logstash/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@
- [Compatibility](#compatibility)
- [Usage notes](#usage-notes)
- [Configuration](#configuration)
- [Try it out](#try-it-out)
- [Default](#default)
- [FAQ](#faq)
- [How to install OSS version of Logstash](#how-to-install-oss-version-of-logstash)
- [How to install plugins?](#how-to-install-plugins)
- [Contributing](#contributing)

Expand Down Expand Up @@ -156,22 +155,15 @@ using `http.host: 127.0.0.1`, default probes should be disabled or overrided
| `volumeClaimTemplate` | Configuration for the [volumeClaimTemplate for StatefulSets][]. You will want to adjust the storage (default `30Gi` ) and the `storageClassName` if you are using a different storage class | see [values.yaml][] |


## Try it out

In [examples][] you will find some example configurations. These examples are
used for the automated testing of this Helm chart.
## FAQ

### Default
### How to install OSS version of Logstash

To deploy a cluster with all default values and run the integration tests:
Deploying OSS version of Elasticsearch can be done by setting `image` value to
[Logstash OSS Docker image][]

```
cd examples/default
make
```


## FAQ
An example of APM Server deployment using OSS version can be found in
[examples/oss][].

### How to install plugins?

Expand Down Expand Up @@ -214,11 +206,14 @@ about our development and testing process.
[custom docker image]: https://www.elastic.co/guide/en/logstash/current/docker-config.html#_custom_images
[environment variables]: https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/#using-environment-variables-inside-of-your-config
[examples]: https://github.com/elastic/helm-charts/tree/master/logstash/examples
[examples/oss]: https://github.com/elastic/helm-charts/tree/master/logstash/examples/oss
[helm]: https://helm.sh
[imagePullPolicy]: https://kubernetes.io/docs/concepts/containers/images/#updating-images
[imagePullSecrets]: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/#create-a-pod-that-uses-your-secret
[kubernetes secrets]: https://kubernetes.io/docs/concepts/configuration/secret/
[labels]: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
[logstash docker image]: https://www.elastic.co/guide/en/logstash/current/docker.html
[logstash oss docker image]: https://www.docker.elastic.co/#logstash-7-6-2-oss
[maxUnavailable]: https://kubernetes.io/docs/tasks/run-application/configure-pdb/#specifying-a-poddisruptionbudget
[node affinity settings]: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#node-affinity-beta-feature
[nodeSelector]: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
Expand Down
17 changes: 17 additions & 0 deletions logstash/examples/6.x/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# 6.x

This example deploy Logstash 6.8.8 using [default values][].


## Usage

* Deploy Logstash chart with the default values: `make install`


## Testing

You can also run [goss integration tests][] using `make test`


[goss integration tests]: https://github.com/elastic/helm-charts/tree/master/logstash/examples/6.x/test/goss.yaml
[default values]: https://github.com/elastic/helm-charts/tree/master/logstash/values.yaml
17 changes: 17 additions & 0 deletions logstash/examples/default/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Default

This example deploy Logstash 7.6.2 using [default values][].


## Usage

* Deploy Logstash chart with the default values: `make install`


## Testing

You can also run [goss integration tests][] using `make test`


[goss integration tests]: https://github.com/elastic/helm-charts/tree/master/logstash/examples/default/test/goss.yaml
[default values]: https://github.com/elastic/helm-charts/tree/master/logstash/values.yaml
28 changes: 28 additions & 0 deletions logstash/examples/elasticsearch/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Elasticsearch

This example deploy Logstash 7.6.2 which connects to Elasticsearch (see
[values][]).


## Usage

* Deploy [Elasticsearch Helm chart][].

* Deploy Logstash chart: `make install`

* You can now setup a port forward to query Logstash 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/logstash/examples/elasticsearch/test/goss.yaml
[values]: https://github.com/elastic/helm-charts/tree/master/logstash/examples/elasticsearch/values.yaml
17 changes: 17 additions & 0 deletions logstash/examples/oss/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# OSS

This example deploy Logstash 7.6.2 using [Logstash OSS][] version.


## Usage

* Deploy Logstash chart with the default values: `make install`


## Testing

You can also run [goss integration tests][] using `make test`


[logstash oss]: https://www.elastic.co/downloads/logstash-oss
[goss integration tests]: https://github.com/elastic/helm-charts/tree/master/logstash/examples/oss/test/goss.yaml

0 comments on commit 38ce347

Please sign in to comment.