|
|
|
|
|
by tylfin
2540 days ago
|
|
I might be a little slow here, but I don't think I totally understand the use-case. The parallel docker build / pushing to a registry is definitely cool. Isn't the parallel Kubernetes deployment the same as `kubectl apply -f .`? My experience has always been: GitOps w/ version controlled yaml so when a deploy is triggered all the tests run, if that's successful then a sed is performed to replace some placeholder with the new image tags then it's just `kubectl apply -f .` |
|
I've used sed in the past, but it's a huge hassle to do more complicated things (i.e., use different namespaces / taints / resource limits / ... per environment)
I disagree with the way kustomize and jsonnet approach this, learning a new templating language is almost never the right solution. As a bonus, sanic spits out exactly the files it applies so that you can easily find the error in your template without needing to go across multiple files
Finally, this allows you to volume mount your source code folder to avoid having to rebuild after every little change (see the "devmount" part in [1])
[1] https://github.com/distributed-containers-inc/sanic-site/blo...