Skip to content
This repository was archived by the owner on Dec 14, 2022. It is now read-only.

Commit e358ce3

Browse files
author
Chris Wiechmann
authored
Update README.md
1 parent aaa8f2c commit e358ce3

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

helm/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,3 +583,24 @@ Apart from API-Builder4Elastic, this is unfortunately not possible. Elasticsearc
583583
Yes, they can change the number of nodes via the scaling function or via their values.yaml using replicas. This works for API-Builder4Elastic, Logstash, Elasticsearch and Kibana.
584584
For Elasticsearch, make sure the cluster is in Green state before removing a node to avoid data loss.
585585
If you change the Logstash instances, it is recommended to restart all Filebeat instances afterwards. The reason for this are the persistent connections. You may also need to adjust the filebeat configuration.
586+
587+
### How can I increase the disk space for Elasticsearch?
588+
589+
If Elasticsearch is running in Kubernetes as a StatefulSet, you can increase the disk space as follows.
590+
1. Make sure that the StorageClass you are using supports volumeExpansion.
591+
allowVolumeExpansion: true
592+
2. Edit existing PVC for already running PoDs and increase the capacity
593+
3. Update the VolumeClaimTemplate in your Helm values
594+
```
595+
volumeClaimTemplate:
596+
accessModes: [ "ReadWriteOnce" ]
597+
storageClassName: gp2
598+
resources:
599+
requests:
600+
storage: 100Gi
601+
```
602+
4. Now delete the StatefulSet without deleting the pods.
603+
`kubectl -n apim delete sts axway-elk-apim4elastic-elasticsearch --cascade=orphan`
604+
5. Perform a helm upgrade to reinstall the modified StatefulSet
605+
6. Redeploy the PODs of the stateful set
606+
`kubectl -n apim rollout restart sts axway-elk-apim4elastic-elasticsearch`

0 commit comments

Comments
 (0)