Skip to content

Commit 249a001

Browse files
committed
Update App-of-Apps to use overlays
1 parent 24fc744 commit 249a001

1 file changed

Lines changed: 21 additions & 3 deletions

File tree

content/modules/ROOT/pages/04-applicationsets.adoc

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,15 @@ total 12
5151
-rw-r--r--. 1 lab-user 1001040000 0 Jul 29 21:54 kustomization.yaml
5252
----
5353

54-
There are three Applications defined, one for each environment, with kustomize being used to manage them.
54+
There are three Applications defined, one for each environment, with kustomize being used to manage them. If you look at each
55+
of these Applications note that each environment is tied to a different kustomize overlay matching the destination. This
56+
provides an opportunity to tweak the manifests for anything specific to an environment. For example, if you look at the overlays
57+
the `stage` and `prod` environments are patching the vertx-gateway deployment to have two replicas.
58+
59+
[source,yaml,subs="+macros,attributes+"]
60+
----
61+
include::ROOT:example$coolstore/overlays/prod/kustomization.yaml[]
62+
----
5563

5664
Proceed to deploy the app-of-apps Application:
5765

@@ -76,8 +84,8 @@ Click on the `coolstore` tile, notice that it has three resources that it deploy
7684

7785
image::app-of-apps-resources.png[]
7886

79-
Now let's clean-up the Applications however before we do so, have a closer look at the `coolstore` App-of-Apps we deployed:
80-
[.console-output]
87+
Now before we clean-up the Applications have a closer look at the `coolstore` App-of-Apps we deployed:
88+
8189
[source,yaml,subs="attributes+,+macros"]
8290
----
8391
include::ROOT:example$app-of-apps/coolstore-app-of-apps.yaml[]
@@ -94,6 +102,16 @@ In this section we have seen how we can use App-of-Apps to deploy multiple Appli
94102
Applications is static, what if we want to create Applications dynamically based on external sources? This is where
95103
ApplicationSets come into play.
96104

105+
Delete the Application:
106+
107+
[.console-input]
108+
[source,yaml,subs="attributes",role=execute]
109+
----
110+
delete app coolstore -n {user}-argocd
111+
----
112+
113+
Wait for all of the Applications to be removed from the Argo CD UI.
114+
97115
== ApplicationSets
98116

99117
As we saw previously, there are often situations where you want to deploy or generate multiple versions of the same Application with variations. These variations can be static,

0 commit comments

Comments
 (0)