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

7.1.0 release and promotion to beta status #138

Merged
merged 2 commits into from
May 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
## Unreleased - XXXX/XX/XX

### Metricbeat (WIP)

* [#128](https://github.com/elastic/helm-charts/pull/128) - @Crazybus - Add ci jobs for metricbeat
* [#127](https://github.com/elastic/helm-charts/pull/127) - @Crazybus - WIP add metricbeat chart

---
## 7.1.0 - 2019/05/21

* 7.1.0 as the default stack version
* Promotion from alpha to beta status
* Filebeat chart added

### Elasticsearch

* [#119](https://github.com/elastic/helm-charts/pull/119) - @kimxogus - Wait for new master election before stopping the pod to prevent master status being temporarily lost during rolling upgrades #63
* [#109](https://github.com/elastic/helm-charts/pull/109) - @lancespeelmon - Add support for k8s priorityclass

### Kibana

* [#109](https://github.com/elastic/helm-charts/pull/109) - @lancespeelmon - Add support for k8s priorityclass
* [#134](https://github.com/elastic/helm-charts/pull/134) - @Crazybus - Explicitly set the targetPort to the defined http port

### Filebeat

* [#117](https://github.com/elastic/helm-charts/pull/117) - @tylerjl - Add initial filebeat chart
* [#122](https://github.com/elastic/helm-charts/pull/122) - @Crazybus - Add ci jobs for filebeat
* [#121](https://github.com/elastic/helm-charts/pull/121) - @Crazybus - Add integration tests and other tweaks
* [#129](https://github.com/elastic/helm-charts/pull/129) - @tylerjl - Add usage notes for filebeat

---
## 7.0.1-alpha1 - 2019/05/01

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Build Status](https://img.shields.io/jenkins/s/https/devops-ci.elastic.co/job/elastic+helm-charts+master.svg)](https://devops-ci.elastic.co/job/elastic+helm-charts+master/)

This functionality is in alpha status and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but alpha features are not subject to the support SLA of official GA features.
This functionality is in beta status and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but beta features are not subject to the support SLA of official GA features.

## Charts

Expand Down
4 changes: 2 additions & 2 deletions elasticsearch/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ maintainers:
- email: helm-charts@elastic.co
name: Elastic
name: elasticsearch
version: 7.0.1-alpha1
appVersion: 7.0.1
version: 7.1.0
appVersion: 7.1.0
sources:
- https://github.com/elastic/elasticsearch
icon: https://helm.elastic.co/icons/elasticsearch.png
22 changes: 8 additions & 14 deletions elasticsearch/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Elasticsearch Helm Chart

This functionality is in alpha status and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but alpha features are not subject to the support SLA of official GA features.
This functionality is in beta status and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but beta features are not subject to the support SLA of official GA features.

This helm chart is a lightweight way to configure and run our official [Elasticsearch docker image](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html)

Expand Down Expand Up @@ -33,7 +33,7 @@ If you currently have a cluster deployed with the [helm/charts stable](https://g
```
* Install it
```
helm install --name elasticsearch elastic/elasticsearch --version 7.0.1-alpha1
helm install --name elasticsearch elastic/elasticsearch --version 7.1.0
```

## Compatibility
Expand All @@ -42,14 +42,14 @@ This chart is tested with the latest supported versions. The currently tested ve

| 5.x | 6.x | 7.x |
| ------ | ----- | ----- |
| 5.6.16 | 6.7.2 | 7.0.1 |
| 5.6.16 | 6.8.0 | 7.1.0 |

Examples of installing older major versions can be found in the [examples](./examples) directory.

While only the latest releases are tested, it is possible to easily install old or new releases by overriding the `imageTag`. To install version `7.0.1` of Elasticsearch it would look like this:
While only the latest releases are tested, it is possible to easily install old or new releases by overriding the `imageTag`. To install version `7.1.0` of Elasticsearch it would look like this:

```
helm install --name elasticsearch elastic/elasticsearch --version 7.0.1-alpha1 --set imageTag=7.0.1
helm install --name elasticsearch elastic/elasticsearch --version 7.1.0 --set imageTag=7.1.0
```


Expand All @@ -71,7 +71,7 @@ helm install --name elasticsearch elastic/elasticsearch --version 7.0.1-alpha1 -
| `extraInitContainers` | Additional init containers to be passed to the `tpl` function | |
| `secretMounts` | Allows you easily mount a secret as a file inside the statefulset. Useful for mounting certificates and other secrets. See [values.yaml](./values.yaml) for an example | `[]` |
| `image` | The Elasticsearch docker image | `docker.elastic.co/elasticsearch/elasticsearch` |
| `imageTag` | The Elasticsearch docker image tag | `7.0.1` |
| `imageTag` | The Elasticsearch docker image tag | `7.1.0` |
| `imagePullPolicy` | The Kubernetes [imagePullPolicy](https://kubernetes.io/docs/concepts/containers/images/#updating-images) value | `IfNotPresent` |
| `podAnnotations` | Configurable [annotations](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/) applied to all Elasticsearch pods | `{}` |
| `esJavaOpts` | [Java options](https://www.elastic.co/guide/en/elasticsearch/reference/current/jvm-options.html) for Elasticsearch. This is where you should configure the [jvm heap size](https://www.elastic.co/guide/en/elasticsearch/reference/current/heap-size.html) | `-Xmx1g -Xms1g` |
Expand Down Expand Up @@ -128,11 +128,9 @@ make
A cluster with X-Pack security enabled

* Generate SSL certificates following the [official docs]( https://www.elastic.co/guide/en/elasticsearch/reference/6.7/configuring-tls.html#node-certificates)
* Make sure you have a copy of your [license](https://www.elastic.co/subscriptions) handy.
* Create Kubernetes secrets for authentication credentials, X-Pack license and certificates
* Create Kubernetes secrets for authentication credentials and certificates
```
kubectl create secret generic elastic-credentials --from-literal=password=changeme --from-literal=username=elastic
kubectl create secret generic elastic-license --from-file=license.json
kubectl create secret generic elastic-credentials --from-literal=password=changeme --from-literal=username=elastic
kubectl create secret generic elastic-certificates --from-file=elastic-certificates.p12
```
* Deploy!
Expand All @@ -145,10 +143,6 @@ A cluster with X-Pack security enabled
kubectl exec -ti $(kubectl get pods -l release=helm-es-security -o name | awk -F'/' '{ print $NF }' | head -n 1) bash
```

* Install the X-Pack license
```
curl -XPUT 'http://localhost:9200/_xpack/license' -H "Content-Type: application/json" -d @/usr/share/elasticsearch/config/license/license.json
```
* Test that authentication is now enabled
```
curl 'http://localhost:9200/' # This one will fail
Expand Down
2 changes: 1 addition & 1 deletion elasticsearch/examples/6.x/test/goss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ http:
status: 200
timeout: 2000
body:
- '"number" : "6.7.2"'
- '"number" : "6.8.0"'
- '"cluster_name" : "six"'
- '"name" : "six-master-0"'
- 'You Know, for Search'
2 changes: 1 addition & 1 deletion elasticsearch/examples/6.x/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---

clusterName: "six"
imageTag: "6.7.2"
imageTag: "6.8.0"
esMajorVersion: 6
2 changes: 1 addition & 1 deletion elasticsearch/examples/default/test/goss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ http:
status: 200
timeout: 2000
body:
- '"number" : "7.0.1"'
- '"number" : "7.1.0"'
- '"cluster_name" : "elasticsearch"'
- '"name" : "elasticsearch-master-0"'
- 'You Know, for Search'
Expand Down
2 changes: 1 addition & 1 deletion elasticsearch/examples/oss/test/goss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ http:
status: 200
timeout: 2000
body:
- '"number" : "7.0.1"'
- '"number" : "7.1.0"'
- '"cluster_name" : "oss"'
- '"name" : "oss-master-0"'
- 'You Know, for Search'
11 changes: 2 additions & 9 deletions elasticsearch/examples/security/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,18 @@ include ../../../helpers/examples.mk
RELEASE := helm-es-security

install:
# This starts a command in the background to install the license once the cluster has formed
until kubectl exec -ti security-master-0 -- curl --fail -k -XPUT 'https://security-master-headless:9200/_xpack/license' -H "Content-Type: application/json" -d @/usr/share/elasticsearch/config/license/license.json > /dev/null 2>&1 ; do sleep 5; done & \
helm upgrade --wait --timeout=600 --install --values ./security.yml $(RELEASE) ../../ ; \

purge:
helm del --purge $(RELEASE)

license:
kubectl exec -ti security-master-0 -- curl --fail -k -XPUT 'https://security-master-headless:9200/_xpack/license' -H "Content-Type: application/json" -d @/usr/share/elasticsearch/config/license/license.json

test: secrets install goss

secrets:
kubectl delete secrets elastic-credentials elastic-license elastic-certificates elastic-certificate-pem || true && \
vault read -field=value secret/devops-ci/helm-charts/elasticsearch/security/license > license.json && \
kubectl delete secrets elastic-credentials elastic-certificates elastic-certificate-pem || true && \
vault read -field=value secret/devops-ci/helm-charts/elasticsearch/security/certificates | base64 --decode > elastic-certificates.p12 && \
vault read -field=value secret/devops-ci/helm-charts/elasticsearch/security/certificate-pem | base64 --decode > elastic-certificate.pem && \
kubectl create secret generic elastic-credentials --from-literal=password=changeme --from-literal=username=elastic && \
kubectl create secret generic elastic-license --from-file=license.json && \
kubectl create secret generic elastic-certificates --from-file=elastic-certificates.p12 && \
kubectl create secret generic elastic-certificate-pem --from-file=elastic-certificate.pem && \
rm -f license.json elastic-certificates.p12 elastic-certificate.pem
rm -f elastic-certificates.p12 elastic-certificate.pem
3 changes: 0 additions & 3 deletions elasticsearch/examples/security/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,3 @@ secretMounts:
- name: elastic-certificates
secretName: elastic-certificates
path: /usr/share/elasticsearch/config/certs
- name: elastic-license
secretName: elastic-license
path: /usr/share/elasticsearch/config/license
2 changes: 1 addition & 1 deletion elasticsearch/examples/security/test/goss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ http:
password: '{{ .Env.ELASTIC_PASSWORD }}'
body:
- 'active'
- 'platinum'
- 'basic'

file:
/usr/share/elasticsearch/config/elasticsearch.yml:
Expand Down
2 changes: 1 addition & 1 deletion elasticsearch/examples/upgrade/test/goss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ http:
status: 200
timeout: 2000
body:
- '"number" : "7.0.1"'
- '"number" : "7.1.0"'
- '"cluster_name" : "upgrade"'
- '"name" : "upgrade-master-0"'
- 'You Know, for Search'
2 changes: 1 addition & 1 deletion elasticsearch/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ secretMounts: []
# path: /usr/share/elasticsearch/config/certs

image: "docker.elastic.co/elasticsearch/elasticsearch"
imageTag: "7.0.1"
imageTag: "7.1.0"
imagePullPolicy: "IfNotPresent"

podAnnotations: {}
Expand Down
4 changes: 2 additions & 2 deletions filebeat/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ maintainers:
- email: helm-charts@elastic.co
name: Elastic
name: filebeat
version: 7.0.1-alpha1
appVersion: 7.0.1
version: 7.1.0
appVersion: 7.1.0
sources:
- https://github.com/elastic/beats
icon: https://helm.elastic.co/icons/filebeat.png
12 changes: 6 additions & 6 deletions filebeat/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Filebeat Helm Chart

This functionality is in alpha status and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but alpha features are not subject to the support SLA of official GA features.
This functionality is in beta status and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but beta features are not subject to the support SLA of official GA features.

This helm chart is a lightweight way to configure and run our official [Filebeat docker image](https://www.elastic.co/guide/en/beats/filebeat/current/running-on-docker.html).

Expand All @@ -21,7 +21,7 @@ This helm chart is a lightweight way to configure and run our official [Filebeat
```
* Install it
```
helm install --name filebeat elastic/filebeat --version 7.0.1-alpha1
helm install --name filebeat elastic/filebeat --version 7.1.0
```

## Compatibility
Expand All @@ -30,14 +30,14 @@ This chart is tested with the latest supported versions. The currently tested ve

| 5.x | 6.x | 7.x |
| ------ | ----- | ----- |
| 5.6.16 | 6.7.2 | 7.0.1 |
| 5.6.16 | 6.8.0 | 7.1.0 |

Examples of installing older major versions can be found in the [examples](./examples) directory.

While only the latest releases are tested, it is possible to easily install old or new releases by overriding the `imageTag`. To install version `7.0.1` of Filebeat it would look like this:
While only the latest releases are tested, it is possible to easily install old or new releases by overriding the `imageTag`. To install version `7.1.0` of Filebeat it would look like this:

```
helm install --name filebeat elastic/filebeat --version 7.0.1-alpha1 --set imageTag=7.0.1
helm install --name filebeat elastic/filebeat --version 7.1.0 --set imageTag=7.1.0
```


Expand All @@ -50,7 +50,7 @@ helm install --name filebeat elastic/filebeat --version 7.0.1-alpha1 --set image
| `extraVolumes` | Any extra volumes to define for the pod | `[]` |
| `hostPathRoot` | Fully-qualified [hostPath](https://kubernetes.io/docs/concepts/storage/volumes/#hostpath) that will be used to persist Filebeat registry data | `/var/lib` |
| `image` | The Filebeat docker image | `docker.elastic.co/beats/filebeat` |
| `imageTag` | The Filebeat docker image tag | `7.0.1` |
| `imageTag` | The Filebeat docker image tag | `7.1.0` |
| `imagePullPolicy` | The Kubernetes [imagePullPolicy](https://kubernetes.io/docs/concepts/containers/images/#updating-images) value | `IfNotPresent` |
| `imagePullSecrets` | Configuration for [imagePullSecrets](https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/#create-a-pod-that-uses-your-secret) so that you can use a private registry for your image | `[]` |
| `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
2 changes: 1 addition & 1 deletion filebeat/examples/6.x/test/goss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ http:
status: 200
timeout: 2000
body:
- 'filebeat-6.7.2'
- 'filebeat-6.8.0'
2 changes: 1 addition & 1 deletion filebeat/examples/6.x/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
imageTag: 6.7.2
imageTag: 6.8.0

extraEnvs:
- name: ELASTICSEARCH_HOSTS
Expand Down
4 changes: 2 additions & 2 deletions filebeat/examples/default/test/goss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ http:
status: 200
timeout: 2000
body:
- 'filebeat-7.0.1'
- 'filebeat-7.1.0'

file:
/usr/share/filebeat/filebeat.yml:
Expand All @@ -44,4 +44,4 @@ command:
exit-status: 0
stdout:
- 'elasticsearch: http://elasticsearch-master:9200'
- 'version: 7.0.1'
- 'version: 7.1.0'
2 changes: 1 addition & 1 deletion filebeat/examples/oss/test/goss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ http:
status: 200
timeout: 2000
body:
- 'filebeat-7.0.1'
- 'filebeat-7.1.0'
2 changes: 1 addition & 1 deletion filebeat/examples/security/test/goss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ http:
status: 200
timeout: 2000
body:
- 'filebeat-7.0.1'
- 'filebeat-7.1.0'
allow-insecure: true
username: '{{ .Env.ELASTICSEARCH_USERNAME }}'
password: '{{ .Env.ELASTICSEARCH_PASSWORD }}'
2 changes: 1 addition & 1 deletion filebeat/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ extraVolumes: []
hostPathRoot: /var/lib

image: "docker.elastic.co/beats/filebeat"
imageTag: "7.0.1"
imageTag: "7.1.0"
imagePullPolicy: "IfNotPresent"
imagePullSecrets: []

Expand Down
4 changes: 2 additions & 2 deletions helpers/bumper.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

versions = {
5: '5.6.16',
6: '6.7.2',
7: '7.0.1',
6: '6.8.0',
7: '7.1.0',
}

file_patterns = [
Expand Down
Loading