A Skaffold configuration file is a single YAML document, usually named skaffold.yaml, that defines build and deployment steps for a continuous delivery workflow. It resembles a Kubernetes resource manifest and coordinates container image creation with Kubernetes deployment. section 12.3.2
apiVersion: skaffold/v2beta8
kind: Config
build:
artifacts:
- image: skaffold-example
deploy:
kubectl:
manifests:
- k8s-*
A minimal configuration builds the skaffold-example image from a Dockerfile, then uses kubectl to deploy manifests matching k8s-*. section 12.3.2
A practical workflow includes:
- Run skaffold init to detect local source files and generate a basic configuration with build and deploy sections. section 12.3.2
- Define an image artifact and connect deployment to Kubernetes manifests, such as k8s-pod.yaml. section 12.3.2
- Use skaffold dev for the development workflow, selecting a cluster context such as minikube when needed. section 12.3.2
