Applying Skaffold best practices
In this section, we will learn about Skaffold best practices that you, as a developer, can take advantage of, to either speed up your deployment in the inner or outer development loop or use some flags to make things easier while using Skaffold. Let's begin:
- While working with multiple microservices applications deployed to Kubernetes, sometimes, it's challenging to create a single
skaffold.yaml
configuration file for each application. In those common cases, you can createskaffold.yaml
scoped for each application, and then run theskaffold dev
orrun
command independently for each application. You can even iterate both the applications together in a single Skaffold session. Let's assume we have a frontend app and a backend app for both of them; your singleskaffold.yaml
file should look like the following:apiVersion: skaffold/v2beta18 kind: Config requires: - path: ./front-end-app - path: ./backend-app
When you are bootstrapping...