Understanding the Skaffold workflow
Typically, Skaffold works in two modes, namely, continuous development or an end-to-end pipeline through commands such as skaffold dev
and skaffold run
. For example, when you run the skaffold dev
command, the following steps are carried out by Skaffold:
- Receive and watch your source code for changes.
- Copy the changed files straight to
build
if the user marks them as eligible for copying. - Build your artifacts from the source code.
- Test your built artifacts using
container-structure-tests
or custom scripts. - Tag your artifacts.
- Push your artifacts (only if the Kubernetes context is set to a remote cluster).
- Update the Kubernetes manifests with the correct tags.
- Deploy your artifacts.
- Monitor the deployed artifacts with built-in health checks.
- Stream logs from the running pods.
- Clean up any deployed artifacts on exit by pressing Ctrl + C.
In the case of the
skaffold run
command, the workflow is relatively...