PVC Stuck in Terminating

If you’re running Kubernetes clusters, you might have encountered a persistent volume claim (PVC) that gets stuck in the terminating state. This can happen when some Kubernetes objects, such as Pods or StatefulSets, still rely on the PVC, and the Kubernetes control plane cannot remove it until those objects are deleted or updated.

To solve this problem, you can use the kubectl patch command with a specific flag to remove the finalizer from the PVC metadata. The finalizer is a field in the PVC’s metadata that signals the Kubernetes control plane to wait before deleting the PVC until some cleanup tasks are completed.

To remove the finalizer, you can run the following command:

kubectl patch pvc {PVC_NAME} -p '{"metadata":{"finalizers":null}}'

This command sends a patch request to the Kubernetes API server, which updates the PVC’s metadata by setting the finalizers field to null. This action allows the Kubernetes control plane to remove the PVC without waiting for any cleanup tasks.

Porque modernizar las aplicaciones?

Las organizaciones hoy en día, necesitan poder utilizar de la manera mas eficiente la información para poder diferenciarse en un mercado que es cada vez más competitivo.

Las aplicaciones son las que permiten acceder y explotar esta información, por lo que se han convertido en el vehículo para que las organizaciones puedan crear y entregar valor.

Continue reading “Porque modernizar las aplicaciones?”

VMware Tanzu MySQL Operator on vSphere with Tanzu

This weeking I decided to play a little with the VMware Tanzu MySQL that is still on beta deploying it to my vSphere with Tanzu Basic infrastructure. I used as guide the official documentation so if you want more details you can go there. In this blog I’m documenting the specifics or my testing so if you want to follow you will require the following prerequisites:

Prerequisites:

  • Access to Tanzu MySQL for Kubernetes in VMware Tanzu Network Registry.
  • Helm installed in your machine.
  • Kubectl
  • Tanzu Kubernetes Grid Service in my case, vSphere with Tanzu Basic (without NSX-T)
Continue reading “VMware Tanzu MySQL Operator on vSphere with Tanzu”