Skip to main content

Sometimes I write code

StatefulSet Updates: Demystifying OnDelete

I was updating my kubernetes cluster the other week and noticed that there was a chart update for my MongoDB install. I’m not sure what prompted me to look, but I noticed that before the update, I was running 2 different minor versions of MongoDB in my replica set (4.4.8 vs 4.4.10). This had me a bit concerned until I realized that I’d setup the StatefulSet to have an updateStrategy of OnDelete like so:

Upgrading CRDs in Kubernetes

Today, I was performing a routine update in my Kubernetes cluster and I encountered a unique error in ArgoCD. I thought the update to Cert Manager, from 1.6.1 to 1.7.1 would be a simple one due to SemVer, but a CRD issue stopped me from upgrading.

That issue, while easily fixable if I’d just read the release notes, led me to an interesting journey about CRD deprecations.