ansible role update
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
default: test
|
||||
|
||||
include ../../../helpers/examples.mk
|
||||
|
||||
CHART := elasticsearch
|
||||
RELEASE := helm-es-upgrade
|
||||
FROM := 7.17.1 # upgrade from versions before 7.17.1 isn't compatible with 8.x
|
||||
|
||||
install:
|
||||
../../../helpers/upgrade.sh --chart $(CHART) --release $(RELEASE) --from $(FROM)
|
||||
# Rolling upgrade doesn't work when upgrading from clusters with security disabled.
|
||||
# This is because nodes with security enabled can't join a cluster with security disabled.
|
||||
# Every nodes need to be recreated at the same time so they can recreate a cluster with security enabled
|
||||
kubectl delete pod --selector=app=upgrade-master
|
||||
|
||||
test: install goss
|
||||
|
||||
purge:
|
||||
helm del $(RELEASE)
|
||||
@@ -0,0 +1,17 @@
|
||||
# Upgrade
|
||||
|
||||
This example will deploy a 3 node Elasticsearch cluster chart using an old chart
|
||||
version, then upgrade it.
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
* Deploy and upgrade Elasticsearch 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/main/elasticsearch/examples/upgrade/test/goss.yaml
|
||||
@@ -0,0 +1,22 @@
|
||||
http:
|
||||
https://localhost:9200/_cluster/health:
|
||||
status: 200
|
||||
username: elastic
|
||||
password: "{{ .Env.ELASTIC_PASSWORD }}"
|
||||
allow-insecure: true
|
||||
timeout: 2000
|
||||
body:
|
||||
- "green"
|
||||
- '"number_of_nodes":3'
|
||||
- '"number_of_data_nodes":3'
|
||||
|
||||
https://localhost:9200:
|
||||
status: 200
|
||||
username: elastic
|
||||
password: "{{ .Env.ELASTIC_PASSWORD }}"
|
||||
allow-insecure: true
|
||||
timeout: 2000
|
||||
body:
|
||||
- '"number" : "8.4.1"'
|
||||
- '"cluster_name" : "upgrade"'
|
||||
- "You Know, for Search"
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
clusterName: upgrade
|
||||
# Rolling upgrade doesn't work when upgrading from clusters with security disabled.
|
||||
# This is because nodes with security enabled can't join a cluster with security disabled.
|
||||
# Every nodes need to be recreated at the same time so they can recreate a cluster with security enabled
|
||||
updateStrategy: OnDelete
|
||||
Reference in New Issue
Block a user