Skaffold profiles and modules¶
Skaffold is a command-line tool designed to facilitate fast development iteration and manage the deployment of applications to local or remote Kubernetes clusters^[400-devops-07-monitoring-and-observability-k8s-istio-samples-cicd-skaffold-readme.md].
Modules and Profiles¶
Skaffold's workflow is built around the concepts of modules and profiles, which allow developers to define and manage different parts of an application stack^[400-devops-07-monitoring-and-observability-k8s-istio-samples-cicd-skaffold-readme.md].
- Modules: These represent distinct components or services within the project architecture (e.g., the control plane, Ingress, or specific applications like Kiali or Bookinfo).
- Profiles: These allow for specific configurations or selections of modules to be deployed together.
Usage Differences¶
The source of the deployment manifests depends on the command used:
skaffold run: Used for standard deployments; this command pulls manifests from remote charts^[400-devops-07-monitoring-and-observability-k8s-istio-samples-cicd-skaffold-readme.md].skaffold dev: Used for development and hot-reload scenarios; this command pulls manifests from the current branch^[400-devops-07-monitoring-and-observability-k8s-istio-samples-cicd-skaffold-readme.md].
Deployment Examples¶
The modular structure enables incremental deployment. For instance, in a sample environment involving Istio, different stacks can be launched by combining modules^[400-devops-07-monitoring-and-observability-k8s-istio-samples-cicd-skaffold-readme.md]:
-
Istio Control Plane:
Deploys[Skaffold](<./skaffold.md>) run -m istiodistio-baseandistio^[400-devops-07-monitoring-and-observability-k8s-istio-samples-cicd-skaffold-readme.md]. -
Ingress:
Adds the[Skaffold](<./skaffold.md>) run -m [Ingress](<./ingress.md>)ingressmodule to the base stack^[400-devops-07-monitoring-and-observability-k8s-istio-samples-cicd-skaffold-readme.md]. -
Observability:
Adds the[Skaffold](<./skaffold.md>) run -m [Ingress](<./ingress.md>),kialikialimodule^[400-devops-07-monitoring-and-observability-k8s-istio-samples-cicd-skaffold-readme.md]. -
Full Stack:
Deploys the base, Ingress, Kiali, and the sample[Skaffold](<./skaffold.md>) run -m [Ingress](<./ingress.md>),kiali,bookinfobookinfoapplication^[400-devops-07-monitoring-and-observability-k8s-istio-samples-cicd-skaffold-readme.md].
Related Concepts¶
Sources¶
^[400-devops-07-monitoring-and-observability-k8s-istio-samples-cicd-skaffold-readme.md]