第1章 Using Kustomize manifests to deploy applications
You can use the kustomize configuration management tool with application manifests to deploy applications. Read through the following procedures for an example of how Kustomize works in MicroShift.
1.1. How Kustomize works with manifests to deploy applications リンクのコピーリンクがクリップボードにコピーされました!
The kustomize configuration management tool is integrated with MicroShift. You can use Kustomize and the OpenShift CLI (oc) together to apply customizations to your application manifests and deploy those applications to a MicroShift cluster.
-
A
kustomization.yamlfile is a specification of resources plus customizations. -
Kustomize uses a
kustomization.yamlfile to load a resource, such as an application, then applies any changes you want to that application manifest and produces a copy of the manifest with the changes overlaid. - Using a manifest copy with an overlay keeps the original configuration file for your application intact, while enabling you to deploy iterations and customizations of your applications efficiently.
-
You can then deploy the application in your MicroShift cluster with an
occommand.
1.1.1. How MicroShift uses manifests リンクのコピーリンクがクリップボードにコピーされました!
At every start, MicroShift searches the following manifest directories for Kustomize manifest files:
-
/etc/microshift/manifests -
/etc/microshift/manifests.d/* -
/usr/lib/microshift/ -
/usr/lib/microshift/manifests.d/*
MicroShift automatically runs the equivalent of the kubectl apply -k command to apply the manifests to the cluster if any of the following file types exists in the searched directories:
-
kustomization.yaml -
kustomization.yml -
Kustomization
This automatic loading from multiple directories means you can manage MicroShift workloads with the flexibility of having different workloads run independently of each other.
| Location | Intent |
|---|---|
|
| Read-write location for configuration management systems or development. |
|
| Read-write location for configuration management systems or development. |
|
| Read-only location for embedding configuration manifests on OSTree-based systems. |
|
| Read-only location for embedding configuration manifests on OSTree-based systems. |