|
4 | 4 |
|
5 | 5 | :_mod-docs-content-type: CONCEPT
|
6 | 6 | [id="microshift-manifests-overview_{context}"]
|
7 |
| -= How manifests work with kustomize |
| 7 | += How Kustomize works with manifests to deploy applications |
8 | 8 |
|
9 |
| -The `kustomize` configuration management tool is integrated with {microshift-short}. At every start, {microshift-short} searches the `/etc/microshift/manifests`, `/etc/microshift/manifests.d/++*++`, `/usr/lib/microshift/`, and `/usr/lib/microshift/manifests.d/++*++` manifest directories for a `kustomization.yaml`, `kustomization.yml`, or `Kustomization` file. If it finds one, {microshift-short} automatically runs the equivalent of the `kubectl apply -k` command to apply the identified manifests to the cluster. |
| 9 | +The `kustomize` configuration management tool is integrated with {microshift-short}. You can use Kustomize and the {oc-first} together to apply customizations to your application manifests and deploy those applications to a {microshift-short} cluster. |
10 | 10 |
|
11 |
| -Loading from multiple directories allows you to manage {microshift-short} workloads with more flexibility. Different workloads can be independent of each other. |
| 11 | +* A `kustomization.yaml` file is a specification of resources plus customizations. |
| 12 | +* Kustomize uses a `kustomization.yaml` file 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. |
| 13 | +* 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. |
| 14 | +* You can then deploy the application in your {microshift-short} cluster with an `oc` command. |
| 15 | +
|
| 16 | +[id="how-microshift-uses-manifests"] |
| 17 | +== How {microshift-short} uses manifests |
| 18 | +At every start, {microshift-short} searches the following manifest directories for Kustomize manifest files: |
| 19 | + |
| 20 | +* `/etc/microshift/manifests` |
| 21 | +* `/etc/microshift/manifests.d/++*++` |
| 22 | +* `/usr/lib/microshift/ |
| 23 | +* `/usr/lib/microshift/manifests.d/++*++` |
| 24 | + |
| 25 | +{microshift-short} 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: |
| 26 | + |
| 27 | +* `kustomization.yaml` |
| 28 | +* `kustomization.yml` |
| 29 | +* `Kustomization` |
| 30 | + |
| 31 | +This automatic loading from multiple directories means you can manage {microshift-short} workloads with the flexibility of having different workloads run independently of each other. |
| 32 | + |
| 33 | +.{microshift-short} manifest directories |
12 | 34 |
|
13 | 35 | [cols="2",options="header"]
|
14 | 36 | |===
|
|
0 commit comments