Murz
December 12, 2023, 11:16am
1
Pretty often I need to edit Kubernetes config files (admin.conf
from different clusters) to do some simple operations manually:
Merge two or more config files into one with renaming the clusters’ names to make them unique.
Rename a user, or a context (they should be renamed in several places at once).
Change server endpoints.
etc.
It is not very hard to make these changes manually in any simple text editor, but it’s too boring and can cause errors.
So, it would be great to have a tool, that will simplify these easy routine tasks, providing some convenient UI and validation.
Does anyone know some tools for automating editing Kubernetes config files?
I guess you are looking for some kind of templating.
In web development, there are million ways to create html.
In Kubernetes there are million ways to create yaml.
Helm is popular
Some like CUE
There is kustomize
I never used jsonnet, and I think I never will.
Too many options.
Murz
December 13, 2023, 5:25am
3
@Thomas-Guettler No, the question is not about templating at all. I’m talking specifically about the single file - Kubernetes config aka admin.conf
with multiple contexts, and simple common operations with it.
So, some kind of UI to edit it will be a great improvement over manual editing of such files.
Murz
December 13, 2023, 9:06am
4