You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/microshift-auto-apply-manifests.adoc
+15-16Lines changed: 15 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,8 +5,7 @@
5
5
:_content-type: CONCEPT
6
6
[id="microshift-auto-apply-manifests_{context}"]
7
7
= Automatically applying manifests with `kustomize`
8
-
9
-
Providing multiple directories allows a flexible method of managing {product-title} workloads. When you run the `kustomize` configuration management tool, {product-title} searches the `/etc/microshift/manifests` and `/usr/lib/microshift/` manifest directories for a `kustomization.yaml` file. If it finds one, {product-title} automatically runs the `kubectl apply -k` command to apply the manifests to the cluster.
8
+
Providing multiple directories allows a flexible method of managing {product-title} workloads. When you run the `kustomize` configuration management tool, {product-title} searches the `/etc/microshift/manifests` and `/usr/lib/microshift/` manifest directories for a `kustomization.yaml` file. If it finds one, {product-title} automatically runs the `kubectl apply -k` command to apply the manifests to the cluster.
10
9
11
10
[IMPORTANT]
12
11
====
@@ -32,25 +31,25 @@ This example demonstrates automatic deployment of a BusyBox container using `kus
32
31
.Procedure
33
32
. Create the BusyBox manifest files by running the following commands:
34
33
+
35
-
* Define the directory location.
34
+
.. Define the directory location:
36
35
+
37
36
[source,terminal]
38
37
----
39
38
$ MANIFEST_DIR=/etc/microshift/manifests
40
39
----
41
40
+
42
-
* Make the directory by running the following command:
41
+
.. Make the directory:
43
42
+
44
43
[source,terminal]
45
44
----
46
45
$ sudo mkdir -p ${MANIFEST_DIR}
47
46
----
48
47
+
49
-
* Place the `yaml` file in the directory.
48
+
.. Place the YAML file in the directory:
50
49
+
51
50
[source,terminal]
52
51
----
53
-
$ sudo tee ${MANIFEST_DIR}/busybox.yaml &>/dev/null <<EOF
52
+
$ sudo cat << EOF > ${MANIFEST_DIR}/busybox.yaml
54
53
55
54
apiVersion: v1
56
55
kind: Namespace
@@ -76,43 +75,43 @@ spec:
76
75
command:
77
76
- sleep
78
77
- "3600"
78
+
EOF
79
79
----
80
-
// what are the "---" after name: busybox?
81
80
.Procedure
82
81
. Create the `kustomize` manifest files by running the following commands:
83
82
+
84
-
* Run the command to read and write the standard inputs.
0 commit comments