Add example of using kustomization. #11
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Example of using https://github.com/kubernetes-sigs/kustomize to have variant deployments to dev and prod.
The choice of using this project is that it will be integrated into kubectl as a subcommand (kubernetes/enhancements#633).
But for now, it requires a stand alone binary(https://github.com/kubernetes-sigs/kustomize/releases)
The flow would be as follow:
run kustomize build nais/dev or kustomize build nais/prod to generate specifications for dev and prod.
kustomize will first apply configuration + rules to the yaml files in the base folder, then the rules + configuration in the dev/prod folders are applied to generate the final specifications.
In my opinion
Pros:
Cons:
Thoughts?