docker-openwisp icon indicating copy to clipboard operation
docker-openwisp copied to clipboard

[enchancement] Avoid repeating kubernetes configuration

Open atb00ker opened this issue 6 years ago • 2 comments

Currently, the configurations in the kubernetes/ need to be repeated for every file that requires a specific value, Example, the domain and IP addresses need to changed in 4 files, Config.yml, ExtServices.yml, Services.yml & Ingress.yml, this is not ideal and may cause different settings in different files.

atb00ker avatar Oct 15 '19 15:10 atb00ker

Find some inspiration here: https://stackoverflow.com/questions/48296082/how-to-set-dynamic-values-with-kubernetes-yaml-file

Answer: https://stackoverflow.com/a/56240712/6410464

atb00ker avatar Oct 15 '19 15:10 atb00ker

I think this can be solved using kustomize, it will enable us to not edit the original example files: https://github.com/kubernetes-sigs/kustomize/blob/master/examples/jsonpatch.md

atb00ker avatar Jan 18 '20 17:01 atb00ker