-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Document end-to-end GitOps solutions #1937
Comments
In particular I'm curious how:
|
currently the only way to see them is by running with
right now in skaffold we don't support multiple tagging strategies, this has been discussed in #1269. maybe it's worth revisiting different solutions for this now. not very pretty, but you can accomplish something similar with this right now using profiles (and a little unix foo): build:
tagPolicy:
sha256: {}
...
profiles:
- name: staging
build:
tagPolicy:
envTemplate:
template: staging-{{.GIT_COMMIT}}
|
I'm also pretty curious about this... maybe I should just be patient, but related to this, do you think Skaffold is meant to be a good building block for supporting using artifacts from one workflow in another? (Sorry if this isn't the best place to ask this, although I wasn't able to access the skaffold-users mailing list.)
|
You can get a step closer by passing the
Unfortunately, the output is interleaved with skaffold logging. The global |
@alnr probably you could use the -o flag to output to a file using kustomize? |
Not possible unfortunately. |
Ref #2161 |
@itsleeowen, Recently @marlon-gamez added a functionality to output build output. Now users can potentially do
|
I'm closing this issue as it hasn't seen activity in awhile, and it doesn't seem to be making any headway for prioritization. Let's re-open the issue if and when we feel ready to address it. |
I'm leaving breadcrumbs for others. Skaffold supports gitops by rendering the output files after a build:
You can then use skaffold apply:
With the above steps, the altered files need to be checked into git (hopefully before Suppose, we have 2 git repositories: A (application source files + skaffold.yaml) and B (production rendered kubernetes manifests). How would we automate making a PR in B (manifest) with the rendered output from A (app skaffold)? Kustomize (and skaffold) allows us to refer to repository A in some kustomize files from repository B. From repository B (manifests only), you can use remoteBuild to use the kustomizations in A (source code, skaffold, kustomizations), and it can update the deployment. However, repository B would not have knowledge of the tag skaffold had pushed to unless skaffold had rendered it out as a new "base". (or if it was implied to be the full git sha1 of repository A Alternatively, Suppose in production manifest repository B, we have
We can take the fully rendered production manifest as the If Skaffold's render is not working for you, Skaffold also allows the final image to be retrieved via:
kustomize allows you to edit the image with:
This will change the overlay files and require it to be checked into git. |
Document solutions that walk the user through best practices from dev, testing and production deployment using GitOps using Skaffold.
The text was updated successfully, but these errors were encountered: