Specs and selectors
Back to basics today, writing from scratch some templates.
ConfigMap, Pod, Service, Ingress, stitching them together,
seeing the kubectl patch on a selector or on a metadata
getting injected and magic happening on the ingress controller.
I was writing documentation, so going to the basics is important
for clarity. Unfortunately, flipping a selector on a Service
to match a new set of Pods isn’t a long-term solution, as you
still have to figure out when to get rid of the old set of Pods
you are trying to replace, and I don’t think kubectl patch
without a more encompassing solution is sustainable.
It circles back to a common problem with these complex solutions like Kubernetes, getting “something” running is much easier, maintaining it for hundreds of applications over long periods comes with a different set of challenges.
On the other hand, once you get to that scale, every solution starts to show some wear and tear…