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

Use kustomize for skaffold local development #1232

Merged
merged 2 commits into from
Nov 4, 2022
Merged

Use kustomize for skaffold local development #1232

merged 2 commits into from
Nov 4, 2022

Conversation

arbrown
Copy link
Contributor

@arbrown arbrown commented Nov 3, 2022

Adds kustomization.yaml to kubernetes-manifests folder Changes render target in skaffold.yaml to kustomize

Background

This change allows use of skaffold for local development with a different kustomize target than the default one in kustomize/

This allows us to keep separate "dev" manifests in kubernetes-manifests/ with clean "release" versions occasionally generated and stored in kustomize/base. That way, when you deploy from kustomize/ you will not get any unrelease development noise/features.

Additional Notes

This might not be an ideal solution, but I believe it is a step in the right direction. Note that kustomize components are all in kustomize/components; there are no separate development and release versions. Perhaps the modules could be moved to a dev folder and copied to kustomize/ on release, or perhaps that is less of a concern than ensuring that release manifests always point to pre-built known images. I'm not sure.

Related PRs or Issues

#1228 is definitely related. Using skaffold profiles might provide a better solution, but I'm not sure that it addresses the release/dev manifest separation discussed in Background.

Adds kustomization.yaml to kubernetes-manifests folder
Changes render target in skaffold.yaml to kustomize
@arbrown arbrown requested a review from a team as a code owner November 3, 2022 19:24
@arbrown arbrown requested a review from NimJay November 3, 2022 19:24
@github-actions
Copy link

github-actions bot commented Nov 3, 2022

🚲 PR staged at http://35.202.95.12

Co-authored-by: Nim Jayawardena <nimjay@google.com>
@github-actions
Copy link

github-actions bot commented Nov 4, 2022

🚲 PR staged at http://35.202.95.12

Copy link
Collaborator

@NimJay NimJay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding in my suggestion.
Looks good.
Approved!

Copy link
Collaborator

@NimJay NimJay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding in my suggestion.
Looks good.
Approved!

@NimJay NimJay merged commit f452516 into main Nov 4, 2022
@NimJay NimJay deleted the kustomize-local branch November 4, 2022 20:15
D-Mwanth pushed a commit to D-Mwanth/microservices-demo that referenced this pull request Mar 6, 2024
* Use kustomize for skaffold local development

Adds kustomization.yaml to kubernetes-manifests folder
Changes render target in skaffold.yaml to kustomize

* Update kubernetes-manifests/kustomization.yaml

Co-authored-by: Nim Jayawardena <nimjay@google.com>

Co-authored-by: Nim Jayawardena <nimjay@google.com>
This pull request was closed.
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.

3 participants