Typorithm · easy

skaffold.yaml

skaffold-yamlkubernetesconfigbuilddeploy
Saved on this device
Full lesson · 8 learning steps Open any exercise for focused practice
1

Step 1 of 8 · intro card

Learn skaffold.yaml

0%

Skaffold & Dev

skaffold.yaml ties build and deploy together: build.artifacts say what image to build and from where, and deploy.kubectl.manifests say what to apply — so one config drives the whole local loop.

A skaffold.yaml is a single Config (apiVersion: skaffold/v4beta*, kind: Config) that wires together how your app is built and how it is deployed.

build.artifacts each declare an image and a context directory; Skaffold builds them and rewrites that image reference in your manifests with the freshly built tag.

deploy chooses a deployer — kubectl with a list of manifests, or helm with releases — so build output flows straight into the cluster.

01

kind: Config is the pipeline root.

02

build.artifacts: image + context per build.

03

deploy.kubectl.manifests applies the YAML.

apiVersion: skaffold/v4beta11
kind: Config
build:
  artifacts:
    - image: web
      context: ./web
deploy:
  kubectl:
    manifests:
      - k8s/*.yaml

Read the implementation

Connect each part of the code to the concept before you type.

1. Schema version

apiVersion pins the skaffold config schema; v4beta11 is a current Config version.

apiVersion: skaffold/v4beta11

2. Resource kind

kind: Config marks this as a top-level Skaffold pipeline definition.

kind: Config

3. Artifact image

build.artifacts[].image names the image Skaffold builds and substitutes into manifests.

image: web

4. Build context

context is the directory (with its Dockerfile) Skaffold builds the artifact from.

context: ./web

5. Deploy manifests

deploy.kubectl.manifests lists the YAML Skaffold applies after building.

manifests:

A complete learning loop

01

Understand

Read the concept map and follow the code breakdown.

02

Reconstruct

Type the implementation, repair mistakes and work through every recall exercise.

03

Verify

Use the final check without hints; revisit weak concepts in short practice sessions.

skaffold.yaml: Lesson & Practice · Typorithm | ApplyDjinn