question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add doc to manage PVC in Elasticsearch FAQ

See original GitHub issue

There is a lot of questions about the procedure to resize Elasticsearch PVC by migrating to new chart release (https://github.com/elastic/helm-charts/issues/647#issuecomment-636778450). This should be documented in the FAQ.

In the same way, we should document the way to create PVC matching VolumeClaimTemplates naming convention outside of Elasticsearch chart (https://github.com/elastic/helm-charts/issues/518#issuecomment-726109728).

This should fix #772, #851, #518 & #656

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
czomocommented, Nov 19, 2021

I managed to resize volumes in kubernetes using ALLOWVOLUMEEXPANSION available in later versions

kubectl get Storageclass
NAME            PROVISIONER             RECLAIMPOLICY   VOLUMEBINDINGMODE      ALLOWVOLUMEEXPANSION   AGE
gp2 (default)   kubernetes.io/aws-ebs   Delete          WaitForFirstConsumer   true                   93d

if ALLOWVOLUMEEXPANSION is not set to true add allowVolumeExpansion: true kubectl edit storageclass and add

kind: StorageClass
apiVersion: storage.k8s.io/v1
provisioner: kubernetes.io/aws-ebs
allowVolumeExpansion: true

Then go to PVC and change volume size. WARNING: Do not change size 2 in one row, i managed to get errors.

AWS modifyVolume failed for vol-adasdasdasdasd with IncorrectModificationState: Volume vol-adasdasdasdasd cannot be modified in modification state OPTIMIZING

EDIT I found out that before resizing we need to find out the state of volume, completed is our desired state aws ec2 describe-volumes-modifications --volume-ids vol-xxxxxxxxxxxxxxxxxx --region us-west-2

1reaction
MaxymVlasovcommented, Nov 17, 2021

Hey, @jmlrt, I see that you work in Elastic as SRE. Maybe you can be able to ping folks in internal slack etc. to escalate that issue? I know that docs writing can be more difficult than implementing feature/bug fixes, but 1 year for docs issue… it time to escalation, I think 🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

Volume claim templates | Elastic Cloud on Kubernetes [master]
Specifying the volume claim settingsedit. By default, the operator creates a PersistentVolumeClaim with a capacity of 1Gi for each pod in an Elasticsearch...
Read more >
Manage data from the command line | Elasticsearch Service ...
To update an existing document in Elasticsearch, POST the updated document to http://ELASTICSEARCH_URL/my_index/_doc/ID , where the ID is the _id of the ...
Read more >
Storage recommendations - Elastic Cloud on Kubernetes
Kubernetes deletes Elasticsearch Pods scheduled on that host automatically, as long as the PodDisruptionBudget allows it. By default, ECK manages a ...
Read more >
Optimistic concurrency control | Elasticsearch Guide [8.5]
Maximize value and optimize your experience. Deploy everything Elastic has to offer across any cloud, in minutes. Learn more.
Read more >
Backup Elasticsearch on Kubernetes
You should mount a PVC to the elasticsearch data directory. This is typically located at /user/share/elasticsearch/data . Create rules for Elasticsearch. Create ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found