Skaffold: Is there a way to deploy to files?

Created on 21 May 2019  路  9Comments  路  Source: GoogleContainerTools/skaffold

I'm trying to create a CI/CD flow with kubernetes and skaffold. I still dont have a way to have the history of the deployed versions, or do a simple callback.

What I was thinking about is to export the tagged yaml generated by skaffold deploy to commit them and finally trigger the CD process.

Is there a way?

aredeploy kinfeature-request needs-design-proposal

Most helpful comment

Thanks for opening this @lucasmpr - it might be interesting to explore this direction - it seems to me that it would require a skaffold render phase rather than deploy to file - as deploy is implicitly a "render" & "kubectl apply" operation. If there is a lot of interest we could expose this - for helm we could use helm template for the final deployables.

All 9 comments

Thanks for opening this @lucasmpr - it might be interesting to explore this direction - it seems to me that it would require a skaffold render phase rather than deploy to file - as deploy is implicitly a "render" & "kubectl apply" operation. If there is a lot of interest we could expose this - for helm we could use helm template for the final deployables.

1937 has a similar question.

I don't see another way to do GitOps inside skaffold without this step.

I can try to build something if you need me.

I would welcome for skaffold to just dump the patched manifests without doing anything with it (no kubectl, no kustomize, no helm, just leave it to me).
I am doing GitOps with ArgoCD and I would definitely want skaffold to just dump the patched manifests somewhere predefined, so that I can commit them automatically if the version matches a given rule.

I'd like to achieve something similar to what flux does with watching docker repos, but instead of watching images and only patching images, I want updates to the manifests propagated to the deploy repo.

Just ran into the same issue, would also love to see an option to only render manifests. Or move towards Helm v3 which is tiller-less anyway?

Would also like to see a kustomize manifest output option. Could be the entire manifest, or optionally, a list of kustomize edit commands to "fix" up the images for deployment?

See this comment which comes close to what OP wants, but does not quite work fully yet.

This is super important for tight integration into existing CI/CD pipelines.
Please implement a render stage or a custom_script deployer (like the build stage already has)

We are looking at implementing this feature this quarter for flows where we can.

I realized that this was already an issue opened in https://github.com/GoogleContainerTools/skaffold/issues/1187 - closing this - we are going to track it in #1187

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ianlewis picture ianlewis  路  4Comments

Morriz picture Morriz  路  3Comments

strikeout picture strikeout  路  4Comments

yurchenkosv picture yurchenkosv  路  3Comments

woodcockjosh picture woodcockjosh  路  4Comments