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)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmlrt authored Feb 5, 2021
1 parent d370593 commit d3aeba1
Show file tree
Hide file tree
Showing 25 changed files with 120 additions and 176 deletions.
2 changes: 1 addition & 1 deletion apm-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,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 8.0.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/master/elasticsearch/examples/oss/
[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/apm-server/examples/oss/test/goss.yaml
5 changes: 5 additions & 0 deletions apm-server/examples/oss/test/goss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ http:
timeout: 2000
body:
- '8.0.0'
http://elasticsearch-master:9200/_cat/indices:
status: 200
timeout: 2000
body:
- 'apm-oss-8.0.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 @@ -253,14 +252,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 @@ -408,12 +399,10 @@ about our development and testing process.
[docker for mac]: https://github.com/elastic/helm-charts/tree/master/elasticsearch/examples/docker-for-mac
[elasticsearch cluster health status params]: https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-health.html#request-params
[elasticsearch docker image]: https://www.elastic.co/guide/en/elasticsearch/reference/current/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/master/elasticsearch/examples/
[examples/multi]: https://github.com/elastic/helm-charts/tree/master/elasticsearch/examples/multi
[examples/oss]: https://github.com/elastic/helm-charts/tree/master/elasticsearch/examples/oss
[examples/security]: https://github.com/elastic/helm-charts/tree/master/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 @@ -1009,16 +1009,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: 8.0.0
"""

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


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
2 changes: 1 addition & 1 deletion filebeat/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,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
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-8.0.0'
- 'filebeat-oss-8.0.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 @@ -141,14 +140,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 @@ -214,7 +205,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/master/kibana/examples
[examples/oss]: https://github.com/elastic/helm-charts/tree/master/kibana/examples/oss
[examples/security]: https://github.com/elastic/helm-charts/tree/master/kibana/examples/security
[gke]: https://cloud.google.com/kubernetes-engine
[helm]: https://helm.sh
Expand All @@ -223,7 +213,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/current/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 @@ -156,7 +156,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 @@ -175,7 +175,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
10 changes: 5 additions & 5 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-8.0.0'
http://oss-master:9200/_search?q=metricset.name:state_deployment:
- 'metricbeat-oss-8.0.0'
http://elasticsearch-master:9200/_search?q=metricset.name:state_deployment:
status: 200
timeout: 2000
body:
- 'metricbeat-8.0.0'
- 'metricbeat-oss-8.0.0'

file:
/usr/share/metricbeat/metricbeat.yml:
Expand All @@ -38,4 +38,4 @@ command:
cd /usr/share/metricbeat && metricbeat test output:
exit-status: 0
stdout:
- 'elasticsearch: http://oss-master:9200'
- 'elasticsearch: http://elasticsearch-master:9200'
10 changes: 5 additions & 5 deletions metricbeat/examples/oss/test/goss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ user:
gid: 1000

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

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

1 comment on commit d3aeba1

@ondrejsika
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😢

Please sign in to comment.