The persistent volume script always creates hard coded 3 PV independent of the used worker nodes. So all pods which are larger than 3 will write data into non-persistent storage and will lose data when the pod gets rescheduled or when it fails / gets deleted.
So PV creation should also be dependent on the worker node count, or the scale command should stop at three, but I would prefer getting as many PV as Pods!
Thanks for the suggestion @stoeps13, we've created an internal ticket for this to work on both the Ansible scripting front and the product chart to create PV / PVC.
Hi, the script https://github.com/HCL-TECH-SOFTWARE/connections-automation/blob/8521ea7754c4cadf83e6e1111ab2069331414be0/roles/hcl/component-pack/tasks/scale_component_pack.yml#L5 scales all pods on the number of nodes configured in the Kubernetes cluster, so when you have more than three nodes, it scales to 4, 5, ... pods per deployment.
The persistent volume script always creates hard coded 3 PV independent of the used worker nodes. So all pods which are larger than 3 will write data into non-persistent storage and will lose data when the pod gets rescheduled or when it fails / gets deleted.
So PV creation should also be dependent on the worker node count, or the scale command should stop at three, but I would prefer getting as many PV as Pods!
This affects:
Regards Christoph