ansible role update

This commit is contained in:
havelight-ee
2022-12-09 13:38:44 +09:00
parent 8391ca915d
commit 3af7e034fc
890 changed files with 79234 additions and 0 deletions

View File

@@ -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)

View File

@@ -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

View File

@@ -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"

View File

@@ -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