💻 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.
- To start off, you should have minikube and kubectl. Then, install skaffold: https://skaffold.dev/docs/install/
- In your root directory, enter
skaffold init. You should seeskaffold.yaml - Create your k8s manifest files for service and deployment, then reference them in the
skaffold.yamlfile like so:
manifests:
rawYaml:
- k8s/app.yaml
- Enter
skaffold devand you should see your app being deployed in your single-node minikube cluster.