elasticsearch-pet
elasticsearch-pet copied to clipboard
Updating to work with kubernetes version 1.5 (StatefulSets) and possibly against ES 5.x
@simonswine I was wondering if you might offer some guidance on getting this working against version 1.5 of kubernetes, now that PetSet has been renamed StatefulSet.
Things like the api call needing to change to /apis/apps/v1beta1/namespaces/{namespace}/statefulsets
are obvious, but are there other things to consider for getting the pre-stop-hook.sh
script working under version 1.5.
Also, if I were to use this against a v5.x of ElasticSearch, are there any other specific modifications that you think are necessary?
Thanks.
You can have a look at https://github.com/kubernetes/charts/tree/master/incubator/elasticsearch: The pre-stop-hook: https://github.com/kubernetes/charts/blob/master/incubator/elasticsearch/templates/elasticsearch-configmap.yaml#L56