DevSecOps Interview Q&A: Part 5

Laxfed Paulacy
3 min readJan 20, 2023

--

They might want to know how to add disk space, bruh!

Previous

What steps would you take if an application required additional disk space?

If an application running in a Kubernetes cluster required additional disk space, there are several steps that I would take to address the issue:

  1. Identify the source of the disk space issue: The first step would be to determine the source of the disk space issue. This could be caused by an increase in application data or log files, or by an issue with the storage provisioned for the application.
  2. Evaluate the current storage provision: Once the source of the issue is identified, I would evaluate the current storage provision for the application. This would include checking the size of the Persistent Volume (PV) and Persistent Volume Claim (PVC) associated with the application, as well as the storage class used for the PV.
  3. Increase the size of the PV and PVC: If the disk space issue is caused by a lack of storage, the size of the PV and PVC associated with the application can be increased. This can be done by modifying the PV and PVC configuration files and reapplying them to the cluster.
  4. Optimize storage usage: If the disk space issue is caused by an increase in application data or log files, I would work to optimize storage usage. This could include implementing log rotation, archiving or deleting old log files, or implementing data compression.
  5. Monitor disk usage: To prevent this issue from happening again, I would set up monitoring to track disk usage for the application. This would allow me to detect disk space issues early and take action before they become critical.
  6. Scale horizontally: Another option, if disk space is the issue, is to scale the application horizontally by adding more replicas of the pods, which could help to distribute the load and the data between more storage devices.
  7. Consider other storage solutions: If the current…

--

--

Laxfed Paulacy

Delivering Crypto Currency, Python Programming, and Federal Government Shenanigans and Content.