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

Commit

Permalink
[elasticsearch][kibana] remove oss examples (#1046) (#1052)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmlrt committed Feb 16, 2021
1 parent 2a6af4c commit a2c1324
Show file tree
Hide file tree
Showing 26 changed files with 123 additions and 181 deletions.
2 changes: 1 addition & 1 deletion apm-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ An example can be found in [examples/security][].

### How to install OSS version of APM Server?

Deploying OSS version of Elasticsearch can be done by setting `image` value to
Deploying OSS version of APM Server can be done by setting `image` value to
[APM Server OSS Docker image][]

An example of APM Server deployment using OSS version can be found in
Expand Down
4 changes: 2 additions & 2 deletions apm-server/examples/oss/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This example deploy APM Server 7.11.0-SNAPSHOT using [APM Server OSS][] version.
* You can now setup a port forward to query APM indices:

```
kubectl port-forward svc/oss-master 9200
kubectl port-forward svc/elasticsearch-master 9200
curl localhost:9200/_cat/indices
```

Expand All @@ -23,5 +23,5 @@ You can also run [goss integration tests][] using `make test`


[apm server oss]: https://www.elastic.co/downloads/apm-oss
[elasticsearch helm chart]: https://github.com/elastic/helm-charts/tree/7.x/elasticsearch/examples/oss/
[elasticsearch helm chart]: https://github.com/elastic/helm-charts/tree/7.x/elasticsearch/examples/default/
[goss integration tests]: https://github.com/elastic/helm-charts/tree/7.x/apm-server/examples/oss/test/goss.yaml
7 changes: 6 additions & 1 deletion apm-server/examples/oss/test/goss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@ http:
status: 200
timeout: 2000
body:
- "7.11.0"
- '7.11.0'
http://elasticsearch-master:9200/_cat/indices:
status: 200
timeout: 2000
body:
- 'apm-oss-7.11.0'
14 changes: 5 additions & 9 deletions apm-server/examples/oss/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,8 @@ apmConfig:
enabled: false
output.elasticsearch:
hosts: ["http://oss-master:9200"]
## If you have security enabled- you'll need to add the credentials
## as environment variables
# username: "${ELASTICSEARCH_USERNAME}"
# password: "${ELASTICSEARCH_PASSWORD}"
## If SSL is enabled
# protocol: https
# ssl.certificate_authorities:
# - /usr/share/apm-server/config/certs/elastic-ca.pem
hosts: ["http://elasticsearch-master:9200"]
index: "apm-oss-%{[observer.version]}-%{+yyyy.MM.dd}"
setup.template.name: "apm-server"
setup.template.pattern: "apm-oss-*"
11 changes: 0 additions & 11 deletions elasticsearch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ This Helm chart is a lightweight way to configure and run our official
- [Clustering and Node Discovery](#clustering-and-node-discovery)
- [How to deploy clusters with security (authentication and TLS) enabled?](#how-to-deploy-clusters-with-security-authentication-and-tls-enabled)
- [How to migrate from helm/charts stable chart?](#how-to-migrate-from-helmcharts-stable-chart)
- [How to install OSS version of Elasticsearch?](#how-to-install-oss-version-of-elasticsearch)
- [How to install plugins?](#how-to-install-plugins)
- [How to use the keystore?](#how-to-use-the-keystore)
- [Basic example](#basic-example)
Expand Down Expand Up @@ -255,14 +254,6 @@ An example of Elasticsearch cluster using security can be found in
If you currently have a cluster deployed with the [helm/charts stable][] chart
you can follow the [migration guide][].

### How to install OSS version of Elasticsearch?

Deploying OSS version of Elasticsearch can be done by setting `image` value to
[Elasticsearch OSS Docker image][]

An example of Elasticsearch cluster using OSS version can be found in
[examples/oss][].

### How to install plugins?

The recommended way to install plugins into our Docker images is to create a
Expand Down Expand Up @@ -409,12 +400,10 @@ about our development and testing process.
[docker for mac]: https://github.com/elastic/helm-charts/tree/7.x/elasticsearch/examples/docker-for-mac
[elasticsearch cluster health status params]: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/cluster-health.html#request-params
[elasticsearch docker image]: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docker.html
[elasticsearch oss docker image]: https://www.docker.elastic.co/r/elasticsearch/elasticsearch-oss
[environment variables]: https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/#using-environment-variables-inside-of-your-config
[environment from variables]: https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/#configure-all-key-value-pairs-in-a-configmap-as-container-environment-variables
[examples]: https://github.com/elastic/helm-charts/tree/7.x/elasticsearch/examples/
[examples/multi]: https://github.com/elastic/helm-charts/tree/7.x/elasticsearch/examples/multi
[examples/oss]: https://github.com/elastic/helm-charts/tree/7.x/elasticsearch/examples/oss
[examples/security]: https://github.com/elastic/helm-charts/tree/7.x/elasticsearch/examples/security
[gke]: https://cloud.google.com/kubernetes-engine
[helm]: https://helm.sh
Expand Down
14 changes: 0 additions & 14 deletions elasticsearch/examples/oss/Makefile

This file was deleted.

23 changes: 0 additions & 23 deletions elasticsearch/examples/oss/README.md

This file was deleted.

16 changes: 0 additions & 16 deletions elasticsearch/examples/oss/test/goss.yaml

This file was deleted.

4 changes: 0 additions & 4 deletions elasticsearch/examples/oss/values.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions elasticsearch/tests/elasticsearch_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1065,16 +1065,6 @@ def test_esMajorVersion_always_wins():
assert r["statefulset"][uname]["metadata"]["annotations"]["esMajorVersion"] == "7"


def test_esMajorVersion_parse_image_tag_for_oss_image():
config = """
image: docker.elastic.co/elasticsearch/elasticsearch-oss
imageTag: 6.3.2
"""

r = helm_template(config)
assert r["statefulset"][uname]["metadata"]["annotations"]["esMajorVersion"] == "6"


def test_set_pod_security_context():
config = ""
r = helm_template(config)
Expand Down
2 changes: 1 addition & 1 deletion elasticsearch/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ roles:
ingest: "true"
data: "true"
remote_cluster_client: "true"
# ml: "true" # ml is not availble with elasticsearch-oss
ml: "true"

replicas: 3
minimumMasterNodes: 2
Expand Down
4 changes: 2 additions & 2 deletions filebeat/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ as a reference. They are also used in the automated testing of this chart.
| `hostPathRoot` | Fully-qualified [hostPath][] that will be used to persist filebeat registry data | `/var/lib` |
| `imagePullPolicy` | The Kubernetes [imagePullPolicy][] value | `IfNotPresent` |
| `imagePullSecrets` | Configuration for [imagePullSecrets][] so that you can use a private registry for your image | `[]` |
| `imageTag` | The filebeat Docker image tag | `8.0.0-SNAPSHOT` |
| `imageTag` | The filebeat Docker image tag | `7.11.0-SNAPSHOT` |
| `image` | The filebeat Docker image | `docker.elastic.co/beats/filebeat` |
| `livenessProbe` | Parameters to pass to liveness [probe][] checks for values such as timeouts and thresholds | see [values.yaml][] |
| `managedServiceAccount` | Whether the `serviceAccount` should be managed by this helm chart. Set this to `false` in order to manage your own service account and related roles | `true` |
Expand Down Expand Up @@ -179,7 +179,7 @@ An example can be found in [examples/security][].

### How to install OSS version of Filebeat?

Deploying OSS version of Elasticsearch can be done by setting `image` value to
Deploying OSS version of Filebeat can be done by setting `image` value to
[Filebeat OSS Docker image][]

An example of Filebeat deployment using OSS version can be found in
Expand Down
2 changes: 1 addition & 1 deletion filebeat/examples/deployment/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Default

This example deploy Filebeat 8.0.0-SNAPSHOT using [default values][] as a Kubernetes Deployment.
This example deploy Filebeat 7.11.0-SNAPSHOT using [default values][] as a Kubernetes Deployment.


## Usage
Expand Down
4 changes: 2 additions & 2 deletions filebeat/examples/oss/test/goss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ user:
gid: 1000

http:
http://oss-master:9200/_cat/indices:
http://elasticsearch-master:9200/_cat/indices:
status: 200
timeout: 2000
body:
- "filebeat-7.11.0"
- "filebeat-oss-7.11.0"
23 changes: 20 additions & 3 deletions filebeat/examples/oss/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
image: docker.elastic.co/beats/filebeat-oss

extraEnvs:
- name: ELASTICSEARCH_HOSTS
value: oss-master:9200
daemonset:
filebeatConfig:
filebeat.yml: |
filebeat.inputs:
- type: container
paths:
- /var/log/containers/*.log
processors:
- add_kubernetes_metadata:
host: ${NODE_NAME}
matchers:
- logs_path:
logs_path: "/var/log/containers/"
output.elasticsearch:
host: '${NODE_NAME}'
hosts: "elasticsearch-master:9200"
index: "filebeat-oss-%{[agent.version]}-%{+yyyy.MM.dd}"
setup.ilm.enabled: false
setup.template.name: "filebeat"
setup.template.pattern: "filebeat-oss-*"
2 changes: 0 additions & 2 deletions helpers/matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@ ES_SUITE:
- default
- config
- multi
- oss
- security
- upgrade
KIBANA_SUITE:
- default
- oss
- security
- upgrade
FILEBEAT_SUITE:
Expand Down
11 changes: 0 additions & 11 deletions kibana/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ This Helm chart is a lightweight way to configure and run our official
- [FAQ](#faq)
- [How to deploy this chart on a specific K8S distribution?](#how-to-deploy-this-chart-on-a-specific-k8s-distribution)
- [How to use Kibana with security (authentication and TLS) enabled?](#how-to-use-kibana-with-security-authentication-and-tls-enabled)
- [How to install OSS version of Kibana?](#how-to-install-oss-version-of-kibana)
- [How to install plugins?](#how-to-install-plugins)
- [How to import objects post-deployment?](#how-to-import-objects-post-deployment)
- [Contributing](#contributing)
Expand Down Expand Up @@ -143,14 +142,6 @@ outside of this chart and accessed using [environment variables][] and volumes.

An example can be found in [examples/security][].

### How to install OSS version of Kibana?

Deploying OSS version of Elasticsearch can be done by setting `image` value to
[kibana OSS Docker image][]

An example of Kibana deployment using OSS version can be found in
[examples/oss][].

### How to install plugins?

The recommended way to install plugins into our Docker images is to create a
Expand Down Expand Up @@ -215,7 +206,6 @@ about our development and testing process.
[environment variables]: https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/#using-environment-variables-inside-of-your-config
[environment from variables]: https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/#configure-all-key-value-pairs-in-a-configmap-as-container-environment-variables
[examples]: https://github.com/elastic/helm-charts/tree/7.x/kibana/examples
[examples/oss]: https://github.com/elastic/helm-charts/tree/7.x/kibana/examples/oss
[examples/security]: https://github.com/elastic/helm-charts/tree/7.x/kibana/examples/security
[gke]: https://cloud.google.com/kubernetes-engine
[helm]: https://helm.sh
Expand All @@ -224,7 +214,6 @@ about our development and testing process.
[imagePullSecrets]: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/#create-a-pod-that-uses-your-secret
[ingress]: https://kubernetes.io/docs/concepts/services-networking/ingress/
[kibana docker image]: https://www.elastic.co/guide/en/kibana/7.x/docker.html
[kibana oss docker image]: https://www.docker.elastic.co/r/kibana/kibana-oss
[kubernetes secrets]: https://kubernetes.io/docs/concepts/configuration/secret/
[labels]: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
[lifecycle hooks]: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/
Expand Down
13 changes: 0 additions & 13 deletions kibana/examples/oss/Makefile

This file was deleted.

27 changes: 0 additions & 27 deletions kibana/examples/oss/README.md

This file was deleted.

4 changes: 0 additions & 4 deletions kibana/examples/oss/test/goss.yaml

This file was deleted.

4 changes: 0 additions & 4 deletions kibana/examples/oss/values.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion logstash/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ useful for the [http input plugin][], for instance.

### How to install OSS version of Logstash?

Deploying OSS version of Elasticsearch can be done by setting `image` value to
Deploying OSS version of Logstash can be done by setting `image` value to
[Logstash OSS Docker image][]

An example of Logstash deployment using OSS version can be found in
Expand Down
2 changes: 1 addition & 1 deletion metricbeat/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ An example can be found in [examples/security][].

### How to install OSS version of Metricbeat?

Deploying OSS version of Elasticsearch can be done by setting `image` value to
Deploying OSS version of Metricbeat can be done by setting `image` value to
[Metricbeat OSS Docker image][]

An example of Metricbeat deployment using OSS version can be found in
Expand Down
11 changes: 5 additions & 6 deletions metricbeat/examples/oss/test/goss-metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ user:
gid: 1000

http:
http://oss-master:9200/_cat/indices:
http://elasticsearch-master:9200/_cat/indices:
status: 200
timeout: 2000
body:
- 'metricbeat-7.11.0'
http://oss-master:9200/_search?q=metricset.name:state_deployment:
- 'metricbeat-oss-7.11.0'
http://elasticsearch-master:9200/_search?q=metricset.name:state_deployment:
status: 200
timeout: 2000
body:
- 'metricbeat-7.11.0'
- 'metricbeat-oss-7.11.0'

file:
/usr/share/metricbeat/metricbeat.yml:
Expand All @@ -38,5 +38,4 @@ command:
cd /usr/share/metricbeat && metricbeat test output:
exit-status: 0
stdout:
- 'elasticsearch: http://oss-master:9200'
- 'version: 7.11.0'
- 'elasticsearch: http://elasticsearch-master:9200'
Loading

0 comments on commit a2c1324

Please sign in to comment.