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.

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”

Kubernetes Home Cloud with Raspberry Pi

How I setup my local Kubernetes cluster on Raspberry Pi using k3s to run different network services for my homelab

When you are running a home lab like mine, that is a dual use equipment – I use a Dell Precision 7750 dual booting ESXi 7.0U1 and Ubuntu 18.04- it gets cumbersome to host some basic services as VMs inside your enviroment like DNS and NTP.

Dell Precision 7750. Dual Boot Ubuntu 18.04 and ESXi 7.0U1

So looking for a cheap way to run this kind of services outside of my virtual enviroment I started to use a old Raspberry Pi 2, running basic dnsmasq and ntpd to get this kind of services.

Continue reading “Kubernetes Home Cloud with Raspberry Pi”

Tanzu Build Service (beta) – Guide

Tanzu Build Service uses Cloud Native Buildpacks (CNBs) to turn source code into OCI (Open Container Initiative) compatible container images, no manual compilation or Dockerfiles. This is something developers using CloudFoundry/PAS/TAS loved, and this bring this same experience to application running on Kubernetes.

Continue reading “Tanzu Build Service (beta) – Guide”

VMware Certified Master Specialist – Cloud Native, I did it!

I did it!, Yesterday I passed the exam. This was a challenging one, time almost ran out… there was some different topics that went to levels I was not expecting. I guess that is what you get when you do a Master level cert!

I will write my lessons learned so hopefully I can help someone trying to achieve this certification… keep you posted! Master Skill Unlocked!

How to become a Jedi Master of Creativity • Derek Cheshire

Deploying Tanzu Application Service for Kubernetes on Kind

Tanzu Application Service for Kubernetes brings the development experience of Tanzu Application Service (formerly called Pivotal Application Service, and before that Pivotal CloudFoundry) to the Kubernetes container orchestrator. It includes the most important features of Tanzu Application Service, such as cf push for buildpack-based apps, while running both the system components and the application instances as Kubernetes workloads.

TAS for Kubernetes is something I have been trying to test for a while. It moved from alpha version to beta on the 14th of April, so it has been open for testing for more than a month now.

Continue reading “Deploying Tanzu Application Service for Kubernetes on Kind”