elasticsearch-pet icon indicating copy to clipboard operation
elasticsearch-pet copied to clipboard

Updating to work with kubernetes version 1.5 (StatefulSets) and possibly against ES 5.x

Open Analect opened this issue 8 years ago • 1 comments

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

Analect avatar Dec 31 '16 10:12 Analect

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

yanns avatar Jul 26 '17 16:07 yanns