As per the documentation, I tried doing upgrades of the cluster using some of the examples given in https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-orchestration.html
a) Horizontal upgrade: I see a new service getting created with every statefulset creation, but under the hood they all belong to one cluster and is accessible via http service 9200 right ? How can I confirm that the shards are being rebalanced after horizontal upgrade ?
❯ kubectl get svc -n elastic-system ✹ ✭
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
elasticsearch-exporter ClusterIP 172.20.72.204 9108/TCP 6d1h
elasticsearch-sample-es-data-nodes ClusterIP None 5d20h
elasticsearch-sample-es-data-nodes-2 ClusterIP None 41h
elasticsearch-sample-es-http ClusterIP 172.20.133.254 9200/TCP 5d20h
kibana-sample-kb-http ClusterIP 172.20.94.101 5601/TCP 5d20h
b) Vertical upgrade I tried, but I did specify a wrong RAM size while specifying, and the cluster got into a state where it could not recover/add any new pods after that. I am using 1.0 beta version, and I wonder vertical upgrade is fully supported in this release.
create Pod elasticsearch-sample-es-data-nodes-2-0 in StatefulSet elasticsearch-sample-es-data-nodes-2 failed error: Pod "elasticsearch-sample-es-data-nodes-2-0" is invalid: spec.containers[0].resources.requests: Invalid value: "3Gi": must be less than or equal to memory limit