LinuxCommandLibrary

skaffold

Automate Kubernetes development workflows

TLDR

Initialize skaffold

$ skaffold init
copy
Development mode
$ skaffold dev
copy
Build images
$ skaffold build
copy
Deploy to cluster
$ skaffold deploy
copy
Run once
$ skaffold run
copy
Delete deployment
$ skaffold delete
copy
Debug mode
$ skaffold debug
copy
Render manifests
$ skaffold render
copy

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.

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.

SEE ALSO

kubectl(1), docker(1), helm(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community