by therealfiona · 2y ago · 0 comments
Things on my team's todo list (aka: correct the sins that occurred before therealfiona was hired):
- Change manifest files over to Helm. (Managing thousands of lines of yaml sucks, don't do it, use Helm or similar that we have not discovered yet.) - Setup Renovate to help keep Helm chart versions up to date. - Continue improving our process because there was none as of 2 years ago.
One technique is to never upgrade clusters. Instead, create a new cluster, apply manifests, then point your DNS or load balancers to the new one.
That technique won't work with every kind of architecture, but it works with those that are designed with the "immutable infrastructure" approach in mind.
There's a good comment in this thread about not having your essential services like vault inside of kubernetes.
If Kubernetes is only for stateless services, well, that's much less useful for the org to invest in.
- create a dev cluster
- create a test cluster
- manage dev & test clusters with gitops tool
- copy payloads and objects from your prod cluster in the gitops tool
- compare test to prod. try new things out in dev. tear down dev cluster at will
- create a new prod cluster based off of test cluster
- migrate things over slowly
Kubernetes is a perfectly good place to keep your desired state. I think it would be in most people’s best interests to learn to maintain, failover, and recover Kubernetes clusters, so they can trust the API, rather than trying to use tools to orchestrate their orchestration
Assuming you have some sort of build pipeline that also pushes to your cluster, Flux does the same thing whilst ensuring whatever was pushed never diverges.
> learn to maintain, failover, and recover Kubernetes clusters
Kubernetes administration is a completely different topic to gitops, the two compliment each other - they don't replace each other.
We upgrade everything once a quarter. Usually takes about four hours per cluster. Occasionally we run into something that's deprecated and we lose another day, but not more than once a year.
a cluster manager isn’t cheap but it sounds like you are getting buried. If you’re on 1.23 or up though, you at least have a year now to fix it.