Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example of using kustomization. #11

Closed
wants to merge 9 commits into from
Closed

Add example of using kustomization. #11

wants to merge 9 commits into from

Conversation

gtcno
Copy link
Contributor

@gtcno gtcno commented Mar 14, 2019

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:

  • Pure yaml file no templating is required, which makes it easier to work with as well as easier to read.
  • kubectl support in the near future.
  • Reduces boilerplate or copy and paste to a certain degree.

Cons:

  • Not as simple or easy to read as having a dev and prod yaml file.

Thoughts?

@gtcno gtcno requested a review from a team as a code owner March 14, 2019 15:11
@geiralund
Copy link
Contributor

I do like this- and would prefer this rather than specify envs in vault.

@gtcno gtcno closed this Apr 5, 2019
@gtcno gtcno deleted the kustomization branch September 19, 2019 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants