I'm learning Kubernetes, coming from an AWS/CloudFormation background to set up my company's infrastructure. One of the strengths of CloudFormation is the use a template that can be parameterized for re-used. So I can use the same template to deploy all our microservices in Fargate, giving it the Docker image, version, CPU/memory counts, etc for each microservice.
When using Kubernetes manifest files, is there good way to "templatize" manifest files? I've read kustomize, but as the title says it's "template-free," and to use it for all our microservices, I'll need multiple /someapp/...
directory trees, which is NOT what I want.
Sure I can use sed
but that seems archaic. I can use yq
to massage my yaml files, but this also seems archaic. For either approach, changing a manifest file entails changing the corresponding sed
and yp
commands.
Any suggestions on how to approach this? How about 3rd party tools like Codefresh? How about helm
? (I haven't looked at it yet.).