Deciphering Skaffold's configuration with skaffold.yaml
Any action that Skaffold needs to perform should be clearly defined in the skaffold.yaml
configuration file. In this configuration file, you must specify which tool Skaffold has to use to build an image and then deploy it to the Kubernetes cluster. Skaffold typically expects to find the configuration file as skaffold.yaml
in the current directory; however, we can override the location using the --filename
flag.
Tip
We recommend that you keep the Skaffold configuration file in the root directory of the project.
The configuration file consists of the following main components:
Skaffold also supports a global configuration file, which is located in the ~/.skaffold/config
path. The following are the options it supports, which can be defined at the global level: