skip to content
Alvin Lucillo

Basic skaffold

/ 1 min read

💻 Tech

Skaffold allows you to update your k8s resources as you update the files associated to your project. For example, if you have a Go app, whenever you make changes to your .go files, Skaffold can detect them and push changes by updating your deployments and pods.

  1. To start off, you should have minikube and kubectl. Then, install skaffold: https://skaffold.dev/docs/install/
  2. In your root directory, enter skaffold init. You should see skaffold.yaml
  3. Create your k8s manifest files for service and deployment, then reference them in the skaffold.yaml file like so:
manifests:
  rawYaml:
    - k8s/app.yaml
  1. Enter skaffold dev and you should see your app being deployed in your single-node minikube cluster.