skaffold
Automate Kubernetes development workflows
TLDR
SYNOPSIS
skaffold command [-f config] [options]
DESCRIPTION
Skaffold automates the Kubernetes development workflow by handling the build, push, and deploy cycle for containerized applications. The dev command watches source files for changes and automatically rebuilds images and redeploys to the cluster on each save, providing a rapid inner development loop.
The tool integrates with multiple build systems including Docker, Jib, and Cloud Native Buildpacks, and supports deployment via kubectl, Helm, and kustomize. Profiles allow customizing the pipeline for different environments such as development, staging, and production, each with different image registries, build configurations, and deployment targets.
Port forwarding automatically exposes deployed services on localhost, and the debug command configures remote debugging for supported languages.
PARAMETERS
init
Create config.dev
Continuous development.build
Build images.deploy
Deploy to cluster.run
Build and deploy once.delete
Remove deployment.debug
Debug mode.-f, --filename FILE
Config file.-p, --profile NAME
Use profile.-n, --namespace NS
Kubernetes namespace.--default-repo REPO
Default image repository (overrides global config).--kube-context CTX
Deploy to specified Kubernetes context.--tail
Stream logs from deployed objects (default: true in dev mode).--port-forward
Port-forward exposed container ports within pods.--trigger MODE
Change detection trigger: polling, notify, or manual (default: notify).
COMMANDS
verify
Run verification tests against deployments.test
Run tests against built application images.apply
Apply hydrated manifests to a cluster.diagnose
Run a diagnostic on Skaffold configuration.fix
Update old configuration to a newer schema version.
CAVEATS
Requires Kubernetes cluster. Docker or alternative builder needed. Learning curve for configuration.
HISTORY
Skaffold was created by Google for Kubernetes development. It simplifies the inner development loop for containerized applications.

