├── .editorconfig
├── .github
└── workflows
│ └── gh-pages.yml
├── .gitignore
├── .nvmrc
├── LICENSE
├── README.adoc
├── content
├── antora.yml
├── lib
│ └── dev-mode.js
└── modules
│ └── ROOT
│ ├── assets
│ └── images
│ │ ├── PathtoGitOps_EBook.png
│ │ ├── argo-cd-allow-access.png
│ │ ├── argo-cd-login.png
│ │ ├── argocd-app1 copy.png
│ │ ├── argocd-app1.png
│ │ ├── argocd-app2.png
│ │ ├── argocd-app3.png
│ │ ├── argocd-login.png
│ │ ├── argocd-login2.png
│ │ ├── argocd-sync-flow.png
│ │ ├── argocd-topology-link.png
│ │ ├── argocd-topology.png
│ │ ├── bgd-green.png
│ │ ├── bgd-helm1.png
│ │ ├── bgd-helm2.png
│ │ ├── bgd-helm3.png
│ │ ├── bgd-helm4.png
│ │ ├── bgd-helm5.png
│ │ ├── bgd-purple.png
│ │ ├── bgd.png
│ │ ├── bgdapp.png
│ │ ├── fullysynced.png
│ │ ├── gitops-cookbook-ebook-cover.png
│ │ ├── helm-logo.png
│ │ ├── kubelogo.png
│ │ ├── kustomize_logo.png
│ │ ├── openshift-login.png
│ │ ├── openshift-perspective-switcher.png
│ │ ├── openshift-topright-menu.png
│ │ ├── openshift-web-terminal-popout.png
│ │ ├── openshift-web-terminal-snippet.png
│ │ ├── out-of-sync.png
│ │ ├── presyncpost.excalidraw
│ │ ├── presyncpost.png
│ │ ├── todo-app-screenshot.png
│ │ ├── todo-app.png
│ │ ├── todo-argocd.png
│ │ ├── todo-card.png
│ │ ├── todo-schema.excalidraw
│ │ ├── two-apps.png
│ │ └── yellowoutput.png
│ ├── examples
│ ├── bgd-app-helm-custom.yaml
│ ├── bgd-app-helm-para.yaml
│ ├── bgd-app-helm.yaml
│ ├── bgd-app.yaml
│ ├── bgd-base
│ │ ├── bgd-deployment.yaml
│ │ ├── bgd-route.yaml
│ │ ├── bgd-svc.yaml
│ │ └── kustomization.yaml
│ ├── bgd-helm-chart
│ │ ├── Chart.yaml
│ │ ├── custom_values_1
│ │ │ └── values.yaml
│ │ ├── templates
│ │ │ ├── deployment.yaml
│ │ │ ├── route.yaml
│ │ │ └── svc.yaml
│ │ └── values.yaml
│ ├── bgd
│ │ ├── bgd-deployment.yaml
│ │ ├── bgd-route.yaml
│ │ └── bgd-svc.yaml
│ ├── bgdk-app.yaml
│ ├── bgdk
│ │ └── kustomization.yaml
│ ├── kustomize-build
│ │ ├── kustomization.yaml
│ │ └── welcome.yaml
│ ├── todo-application.yaml
│ └── todo
│ │ ├── postgres-create-table.yaml
│ │ ├── postgres-deployment.yaml
│ │ ├── postgres-service.yaml
│ │ ├── todo-deployment.yaml
│ │ ├── todo-insert-data.yaml
│ │ ├── todo-route.yaml
│ │ └── todo-service.yaml
│ ├── nav.adoc
│ ├── pages
│ ├── 01-getting-started.adoc
│ ├── 02-gitops-basics.adoc
│ ├── 03-kustomize.adoc
│ ├── 04-helm.adoc
│ ├── 05-syncwaves-hooks.adoc
│ ├── 06-conclusion.adoc
│ ├── _attributes.adoc
│ └── index.adoc
│ └── partials
│ └── .gitkeep
├── default-site.yml
├── dev-mode.png
├── ui-links.png
└── utilities
├── lab-build
├── lab-clean
├── lab-serve
└── lab-stop
/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | indent_style = space
5 | indent_size = 2
6 | charset = utf-8
7 | trim_trailing_whitespace = false
8 | insert_final_newline = false
--------------------------------------------------------------------------------
/.github/workflows/gh-pages.yml:
--------------------------------------------------------------------------------
1 | name: github pages
2 |
3 | on:
4 | workflow_dispatch:
5 | push:
6 | branches: [main]
7 | paths-ignore:
8 | - "README.adoc"
9 | - ".gitignore"
10 |
11 | permissions:
12 | pages: write
13 | id-token: write
14 |
15 | concurrency:
16 | group: gh-pages
17 | cancel-in-progress: false
18 |
19 | jobs:
20 | build:
21 | runs-on: ubuntu-latest
22 | steps:
23 | - name: checkout
24 | uses: actions/checkout@v4
25 | - name: configure pages
26 | uses: actions/configure-pages@v5
27 | - name: setup node
28 | uses: actions/setup-node@v4
29 | with:
30 | node-version: 20.13.1
31 | - name: install antora
32 | run: npm install --global @antora/cli@3.1 @antora/site-generator@3.1
33 | - name: antora generate
34 | run: antora generate default-site.yml --stacktrace
35 | - name: upload pages artifact
36 | uses: actions/upload-pages-artifact@v3
37 | with:
38 | path: www
39 | deploy:
40 | needs: build
41 | environment:
42 | name: github-pages
43 | url: ${{ steps.deployment.outputs.page_url }}
44 | runs-on: ubuntu-latest
45 | steps:
46 | - name: deploy github pages
47 | id: deployment
48 | uses: actions/deploy-pages@v4
49 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | www/
2 | target/
3 | !.mvn/wrapper/maven-wrapper.jar
4 | audit.log
5 | .cache/
6 | *.log
7 |
8 | docs/
9 | gh-pages/
10 | dependency-reduced-pom.xml
11 | svm.jar
12 |
13 | ### STS ###
14 | .apt_generated
15 | .classpath
16 | .factorypath
17 | .project
18 | .settings
19 | .springBeans
20 |
21 | ### IntelliJ IDEA ###
22 | .idea
23 | *.iws
24 | *.iml
25 | *.ipr
26 |
27 | ### NetBeans ###
28 | nbproject/private/
29 | build/
30 | nbbuild/
31 | dist/
32 | nbdist/
33 | .nb-gradle/
34 |
35 | .DS_Store
36 | .vscode
37 | istio-1.1.1
38 | firebase*
39 | yarn*
40 | package*
41 | !package.json
42 | node_modules
43 | .firebaserc
44 | .firebase
--------------------------------------------------------------------------------
/.nvmrc:
--------------------------------------------------------------------------------
1 | 12
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 |
635 | Copyright (C)
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | Copyright (C)
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
675 |
--------------------------------------------------------------------------------
/README.adoc:
--------------------------------------------------------------------------------
1 | ### OpenShift GitOps Workshop
2 |
3 | #### Introduction
4 |
5 | This workshop provides an OpenShift GitOps 101 experience on OpenShift using the OpenShift
6 | GitOps operator. It walks workshop attendees through the process of using OpenShift GitOps
7 | with kustomize and helm.
8 |
9 | #### Installation
10 |
11 | This workshop is available in the Red Hat Demo Platform (RHDP) for Red Hat employees and partners.
12 |
13 | #### Developing Workshop
14 |
15 | ##### Using Containers (Recommended)
16 |
17 | In order to test and develop on your local machine, you can use a specially built container with Podman or Docker as follows.
18 |
19 | [source,sh]
20 | ----
21 | podman run --rm --name antora -v $PWD:/antora -p 8080:8080 -i -t ghcr.io/juliaaano/antora-viewer
22 | ----
23 |
24 | Live-reload is not supported.
25 |
26 | ##### Using Local Files (Less Recommended)
27 |
28 | . Create a git repo from this template
29 | . Clone the repo and `cd` into it
30 | . Run ./utilities/lab-serve
31 | . Open http://localhost:8080 in your browser
32 | . Run ./utilities/lab-build to build your html
33 |
34 | To rebuild your html, run `./utilites/build`.
35 |
36 | #### Understanding the Basic Template Directory Structure
37 |
38 | [source,sh]
39 | ----
40 | ./content/modules/ROOT/
41 | ├── assets
42 | │ └── images # Images used in your content
43 | │ └── example-image.png
44 | ├── examples # You can add downloadable assets here
45 | │ └── example-bash-script.sh # e.g. an example bash script
46 | ├── nav.adoc # Navigation for your lab
47 | ├── pages # Your content goes here
48 | │ ├── index.adoc # First page of your lab, e.g. overview etc
49 | │ ├── module-01.adoc
50 | │ └── module-02.adoc # Sample lab has 2 modules including index.adoc
51 | └── partials # You can add partials here, reusable content inserted inline into your modules
52 | └── example_partial.adoc
53 | ----
54 |
55 | #### Adding Additional Links
56 |
57 | You can add links to external content in the convenient "Links" drop-down on the upper-right of the Showroom Summit 2024 UI.
58 |
59 | ../content/antora.yml
60 | [source,yaml]
61 | ----
62 | asciidoc:
63 | attributes:
64 | page-links:
65 | - url: https://redhat.com
66 | text: Red Hat
67 | - url: https://www.redhat.com/en/summit
68 | text: Summit
69 | ----
70 |
71 | image::ui-links.png[]
72 |
73 | #### Dev Mode
74 |
75 | As a convenience to developers, the Dev Mode Extention (disabled by default) displays the asciidoc attributes you have to work with while writing your lab instructions.
76 |
77 | . Disable/Enable Dev Mode by changing `enabled: true` or `enabled: false`
78 | +
79 | .default-site.yml
80 | [source,yaml]
81 | ----
82 | extensions:
83 | - id: dev-mode
84 | require: ./content/lib/dev-mode.js
85 | enabled: false
86 | ----
87 |
88 | . Produces
89 | +
90 | image::dev-mode.png[]
91 |
--------------------------------------------------------------------------------
/content/antora.yml:
--------------------------------------------------------------------------------
1 | name: openshift-gitops-workshop
2 | title: OpenShift GitOps Workshop
3 | version: master
4 | nav:
5 | - modules/ROOT/nav.adoc
6 |
7 | start_page: ROOT:index.adoc
8 |
9 | asciidoc:
10 | attributes:
11 | page-pagination: true
12 | console_url: URL_PLACEHOLDER
13 | login_command: LOGIN_COMMAND_PLACEHOLDER
14 | gitops_revision: REVISION_PLACEHOLDER
15 | openshift_cluster_ingress_domain: OPENSHIFT_CLUSTER_INGRESS_DOMAIN_PLACEHOLDER
16 | password: PASSWORD_PLACEHOLDER
17 | user: USER_PLACEHOLDER
18 |
--------------------------------------------------------------------------------
/content/lib/dev-mode.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 |
3 | module.exports.register = function ({ config }) {
4 | this.once('contentClassified', ({ playbook, contentCatalog }) => {
5 | var pageDetails = {}
6 | console.log('site-wide attributes (as defined in playbook)')
7 | console.log(playbook.asciidoc.attributes)
8 | let fileContents = "== Site Wide Attributes\n\n"
9 | fileContents += `${playbook.asciidoc.attributes || {}}\n`
10 | contentCatalog.getComponents().forEach((component) => {
11 | component.versions.forEach((componentVersion) => {
12 | getUniqueOrigins(contentCatalog, componentVersion).forEach((origin) => {
13 | console.log(`${componentVersion.version}@${componentVersion.name} attributes (as defined in antora.yml)`)
14 | pageDetails = { version: `${componentVersion.version}`, name: `${componentVersion.name}` }
15 | console.log(origin.descriptor.asciidoc?.attributes || {})
16 | fileContents += `== Component Wide Attributes\n\n`
17 | fileContents += `Antora component version@name: \`${componentVersion.version}@${componentVersion.name}\`\n\n`
18 | fileContents += `[source,json]\n----\n`
19 | fileContents += JSON.stringify(origin.descriptor.asciidoc?.attributes || {}, null, 2)
20 | fileContents += `\n----\n`
21 | })
22 | })
23 | })
24 | const newPage = contentCatalog.addFile({
25 | contents: Buffer.from('= Attributes Page\n\nTo disable Dev Mode (this page) comment out the dev-mode.js extenion in the playbook (usually default-site.yml)\n\n' + fileContents),
26 | path: 'modules/ROOT/pages/attrs-page.adoc',
27 | src: {
28 | path: 'modules/ROOT/pages/attrs-page.adoc',
29 | component: pageDetails.name,
30 | version: pageDetails.version,
31 | // component: pageDetails.name || 'modules',
32 | // version: pageDetails.version || 'master',
33 | module: 'ROOT',
34 | family: 'page',
35 | relative: 'attrs-page.adoc',
36 | },
37 | })
38 | })
39 | // add new page to navigation
40 | this.on('navigationBuilt', ({ contentCatalog }) => {
41 | const { addToNavigation = true, devPagesHeading = 'Dev Mode' } = config
42 | const logger = this.getLogger('dev-pages-extension')
43 | contentCatalog.getComponents().forEach(({ versions }) => {
44 | versions.forEach(({ name: component, version, navigation: nav, url: defaultUrl }) => {
45 | const navEntriesByUrl = getNavEntriesByUrl(nav)
46 | const unlistedPages = contentCatalog
47 | .findBy({ component, version, family: 'page' })
48 | .filter((page) => page.out)
49 | .reduce((collector, page) => {
50 | if ((page.pub.url in navEntriesByUrl) || page.pub.url === defaultUrl) return collector
51 | // logger.warn({ file: page.src, source: page.src.origin }, 'detected unlisted dev page')
52 | return collector.concat(page)
53 | }, [])
54 | if (unlistedPages.length && addToNavigation) {
55 | nav.push({
56 | content: devPagesHeading,
57 | items: unlistedPages.map((page) => {
58 | // logger.warn({ content: page, url: page.pub.url }, 'unlisted dev page details')
59 | const navtitle = page.asciidoc.navtitle || page.src.stem
60 | return { content: navtitle, url: page.pub.url, urlType: 'internal' }
61 | }),
62 | root: true,
63 | })
64 | }
65 | })
66 | })
67 | })
68 | }
69 |
70 | function getUniqueOrigins (contentCatalog, componentVersion) {
71 | return contentCatalog.findBy({ component: componentVersion.name, version: componentVersion.version })
72 | .reduce((origins, file) => {
73 | const origin = file.src.origin
74 | if (origin && !origins.includes(origin)) origins.push(origin)
75 | return origins
76 | }, [])
77 | }
78 |
79 | function getNavEntriesByUrl (items = [], accum = {}) {
80 | items.forEach((item) => {
81 | if (item.urlType === 'internal') accum[item.url.split('#')[0]] = item
82 | getNavEntriesByUrl(item.items, accum)
83 | })
84 | return accum
85 | }
86 |
--------------------------------------------------------------------------------
/content/modules/ROOT/assets/images/PathtoGitOps_EBook.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/content/modules/ROOT/assets/images/PathtoGitOps_EBook.png
--------------------------------------------------------------------------------
/content/modules/ROOT/assets/images/argo-cd-allow-access.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/content/modules/ROOT/assets/images/argo-cd-allow-access.png
--------------------------------------------------------------------------------
/content/modules/ROOT/assets/images/argo-cd-login.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/content/modules/ROOT/assets/images/argo-cd-login.png
--------------------------------------------------------------------------------
/content/modules/ROOT/assets/images/argocd-app1 copy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/content/modules/ROOT/assets/images/argocd-app1 copy.png
--------------------------------------------------------------------------------
/content/modules/ROOT/assets/images/argocd-app1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/content/modules/ROOT/assets/images/argocd-app1.png
--------------------------------------------------------------------------------
/content/modules/ROOT/assets/images/argocd-app2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/content/modules/ROOT/assets/images/argocd-app2.png
--------------------------------------------------------------------------------
/content/modules/ROOT/assets/images/argocd-app3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/content/modules/ROOT/assets/images/argocd-app3.png
--------------------------------------------------------------------------------
/content/modules/ROOT/assets/images/argocd-login.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/content/modules/ROOT/assets/images/argocd-login.png
--------------------------------------------------------------------------------
/content/modules/ROOT/assets/images/argocd-login2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/content/modules/ROOT/assets/images/argocd-login2.png
--------------------------------------------------------------------------------
/content/modules/ROOT/assets/images/argocd-sync-flow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/content/modules/ROOT/assets/images/argocd-sync-flow.png
--------------------------------------------------------------------------------
/content/modules/ROOT/assets/images/argocd-topology-link.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/content/modules/ROOT/assets/images/argocd-topology-link.png
--------------------------------------------------------------------------------
/content/modules/ROOT/assets/images/argocd-topology.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/content/modules/ROOT/assets/images/argocd-topology.png
--------------------------------------------------------------------------------
/content/modules/ROOT/assets/images/bgd-green.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/content/modules/ROOT/assets/images/bgd-green.png
--------------------------------------------------------------------------------
/content/modules/ROOT/assets/images/bgd-helm1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/content/modules/ROOT/assets/images/bgd-helm1.png
--------------------------------------------------------------------------------
/content/modules/ROOT/assets/images/bgd-helm2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/content/modules/ROOT/assets/images/bgd-helm2.png
--------------------------------------------------------------------------------
/content/modules/ROOT/assets/images/bgd-helm3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/content/modules/ROOT/assets/images/bgd-helm3.png
--------------------------------------------------------------------------------
/content/modules/ROOT/assets/images/bgd-helm4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/content/modules/ROOT/assets/images/bgd-helm4.png
--------------------------------------------------------------------------------
/content/modules/ROOT/assets/images/bgd-helm5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/content/modules/ROOT/assets/images/bgd-helm5.png
--------------------------------------------------------------------------------
/content/modules/ROOT/assets/images/bgd-purple.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/content/modules/ROOT/assets/images/bgd-purple.png
--------------------------------------------------------------------------------
/content/modules/ROOT/assets/images/bgd.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/content/modules/ROOT/assets/images/bgd.png
--------------------------------------------------------------------------------
/content/modules/ROOT/assets/images/bgdapp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/content/modules/ROOT/assets/images/bgdapp.png
--------------------------------------------------------------------------------
/content/modules/ROOT/assets/images/fullysynced.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/content/modules/ROOT/assets/images/fullysynced.png
--------------------------------------------------------------------------------
/content/modules/ROOT/assets/images/gitops-cookbook-ebook-cover.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/content/modules/ROOT/assets/images/gitops-cookbook-ebook-cover.png
--------------------------------------------------------------------------------
/content/modules/ROOT/assets/images/helm-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/content/modules/ROOT/assets/images/helm-logo.png
--------------------------------------------------------------------------------
/content/modules/ROOT/assets/images/kubelogo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/content/modules/ROOT/assets/images/kubelogo.png
--------------------------------------------------------------------------------
/content/modules/ROOT/assets/images/kustomize_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/content/modules/ROOT/assets/images/kustomize_logo.png
--------------------------------------------------------------------------------
/content/modules/ROOT/assets/images/openshift-login.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/content/modules/ROOT/assets/images/openshift-login.png
--------------------------------------------------------------------------------
/content/modules/ROOT/assets/images/openshift-perspective-switcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/content/modules/ROOT/assets/images/openshift-perspective-switcher.png
--------------------------------------------------------------------------------
/content/modules/ROOT/assets/images/openshift-topright-menu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/content/modules/ROOT/assets/images/openshift-topright-menu.png
--------------------------------------------------------------------------------
/content/modules/ROOT/assets/images/openshift-web-terminal-popout.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/content/modules/ROOT/assets/images/openshift-web-terminal-popout.png
--------------------------------------------------------------------------------
/content/modules/ROOT/assets/images/openshift-web-terminal-snippet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/content/modules/ROOT/assets/images/openshift-web-terminal-snippet.png
--------------------------------------------------------------------------------
/content/modules/ROOT/assets/images/out-of-sync.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/content/modules/ROOT/assets/images/out-of-sync.png
--------------------------------------------------------------------------------
/content/modules/ROOT/assets/images/presyncpost.excalidraw:
--------------------------------------------------------------------------------
1 | {
2 | "type": "excalidraw",
3 | "version": 2,
4 | "source": "https://excalidraw.com",
5 | "elements": [
6 | {
7 | "id": "Fg4XuHOjgXrHnAMfapnpf",
8 | "type": "arrow",
9 | "x": 473.9214000504744,
10 | "y": 136.28738393177278,
11 | "width": 592.5383303665649,
12 | "height": 0.8023168378043977,
13 | "angle": 0,
14 | "strokeColor": "#c92a2a",
15 | "backgroundColor": "#fa5252",
16 | "fillStyle": "solid",
17 | "strokeWidth": 4,
18 | "strokeStyle": "solid",
19 | "roughness": 1,
20 | "opacity": 100,
21 | "groupIds": [],
22 | "strokeSharpness": "round",
23 | "seed": 1705834482,
24 | "version": 349,
25 | "versionNonce": 437058094,
26 | "isDeleted": false,
27 | "boundElementIds": null,
28 | "points": [
29 | [
30 | 0,
31 | 0
32 | ],
33 | [
34 | 592.5383303665649,
35 | 0.8023168378043977
36 | ]
37 | ],
38 | "lastCommittedPoint": null,
39 | "startBinding": {
40 | "elementId": "fhkoa4L68rSkAqHkcBaxK",
41 | "focus": 1.7740260861845543,
42 | "gap": 9.69851674427278
43 | },
44 | "endBinding": null,
45 | "startArrowhead": null,
46 | "endArrowhead": "arrow"
47 | },
48 | {
49 | "id": "fhkoa4L68rSkAqHkcBaxK",
50 | "type": "text",
51 | "x": 473.8228759765625,
52 | "y": 101.5888671875,
53 | "width": 44,
54 | "height": 25,
55 | "angle": 0,
56 | "strokeColor": "#c92a2a",
57 | "backgroundColor": "#fa5252",
58 | "fillStyle": "solid",
59 | "strokeWidth": 4,
60 | "strokeStyle": "solid",
61 | "roughness": 1,
62 | "opacity": 100,
63 | "groupIds": [],
64 | "strokeSharpness": "sharp",
65 | "seed": 641237362,
66 | "version": 130,
67 | "versionNonce": 351897522,
68 | "isDeleted": false,
69 | "boundElementIds": [
70 | "Fg4XuHOjgXrHnAMfapnpf"
71 | ],
72 | "text": "Time",
73 | "fontSize": 20,
74 | "fontFamily": 1,
75 | "textAlign": "left",
76 | "verticalAlign": "top",
77 | "baseline": 18
78 | },
79 | {
80 | "id": "BiJ9eMPPVyc1WG-WmYQSV",
81 | "type": "text",
82 | "x": 476.967529296875,
83 | "y": 154.3480682373047,
84 | "width": 69,
85 | "height": 25,
86 | "angle": 0,
87 | "strokeColor": "#000000",
88 | "backgroundColor": "#fa5252",
89 | "fillStyle": "solid",
90 | "strokeWidth": 4,
91 | "strokeStyle": "solid",
92 | "roughness": 1,
93 | "opacity": 100,
94 | "groupIds": [],
95 | "strokeSharpness": "sharp",
96 | "seed": 333696686,
97 | "version": 89,
98 | "versionNonce": 384449262,
99 | "isDeleted": false,
100 | "boundElementIds": [],
101 | "text": "Phases",
102 | "fontSize": 20,
103 | "fontFamily": 1,
104 | "textAlign": "left",
105 | "verticalAlign": "top",
106 | "baseline": 18
107 | },
108 | {
109 | "type": "rectangle",
110 | "version": 315,
111 | "versionNonce": 1646671026,
112 | "isDeleted": false,
113 | "id": "tyowFF-OLncjvseqNegFL",
114 | "fillStyle": "solid",
115 | "strokeWidth": 1,
116 | "strokeStyle": "solid",
117 | "roughness": 1,
118 | "opacity": 100,
119 | "angle": 0,
120 | "x": 873.1707153320312,
121 | "y": 186.32635498046875,
122 | "strokeColor": "#000000",
123 | "backgroundColor": "#228be6",
124 | "width": 192.32476806640622,
125 | "height": 36.6419677734375,
126 | "seed": 1014970222,
127 | "groupIds": [],
128 | "strokeSharpness": "sharp",
129 | "boundElementIds": []
130 | },
131 | {
132 | "type": "rectangle",
133 | "version": 385,
134 | "versionNonce": 2129658802,
135 | "isDeleted": false,
136 | "id": "rRItLTq25pVxqYHNF4EWY",
137 | "fillStyle": "solid",
138 | "strokeWidth": 1,
139 | "strokeStyle": "solid",
140 | "roughness": 1,
141 | "opacity": 100,
142 | "angle": 0,
143 | "x": 672.0309143066406,
144 | "y": 187.19512939453125,
145 | "strokeColor": "#000000",
146 | "backgroundColor": "#228be6",
147 | "width": 192.32476806640622,
148 | "height": 36.6419677734375,
149 | "seed": 1644832622,
150 | "groupIds": [],
151 | "strokeSharpness": "sharp",
152 | "boundElementIds": []
153 | },
154 | {
155 | "type": "rectangle",
156 | "version": 390,
157 | "versionNonce": 2106975726,
158 | "isDeleted": false,
159 | "id": "6Fxdqb8qAB2MC3XdeAV-c",
160 | "fillStyle": "solid",
161 | "strokeWidth": 1,
162 | "strokeStyle": "solid",
163 | "roughness": 1,
164 | "opacity": 100,
165 | "angle": 0,
166 | "x": 470.9788513183594,
167 | "y": 185.99209594726562,
168 | "strokeColor": "#000000",
169 | "backgroundColor": "#228be6",
170 | "width": 192.32476806640622,
171 | "height": 36.6419677734375,
172 | "seed": 717801582,
173 | "groupIds": [],
174 | "strokeSharpness": "sharp",
175 | "boundElementIds": []
176 | },
177 | {
178 | "id": "nqgy0bdsu_-bC98PH2d5y",
179 | "type": "text",
180 | "x": 530.1412353515625,
181 | "y": 191.81307983398438,
182 | "width": 74,
183 | "height": 25,
184 | "angle": 0,
185 | "strokeColor": "#000000",
186 | "backgroundColor": "#228be6",
187 | "fillStyle": "solid",
188 | "strokeWidth": 1,
189 | "strokeStyle": "solid",
190 | "roughness": 1,
191 | "opacity": 100,
192 | "groupIds": [],
193 | "strokeSharpness": "sharp",
194 | "seed": 505078706,
195 | "version": 8,
196 | "versionNonce": 1448892206,
197 | "isDeleted": false,
198 | "boundElementIds": null,
199 | "text": "PreSync",
200 | "fontSize": 20,
201 | "fontFamily": 1,
202 | "textAlign": "center",
203 | "verticalAlign": "middle",
204 | "baseline": 18
205 | },
206 | {
207 | "id": "8b79oVVdqFXg_NOILtkNQ",
208 | "type": "text",
209 | "x": 747.6932983398438,
210 | "y": 193.01611328125,
211 | "width": 41,
212 | "height": 25,
213 | "angle": 0,
214 | "strokeColor": "#000000",
215 | "backgroundColor": "#228be6",
216 | "fillStyle": "solid",
217 | "strokeWidth": 1,
218 | "strokeStyle": "solid",
219 | "roughness": 1,
220 | "opacity": 100,
221 | "groupIds": [],
222 | "strokeSharpness": "sharp",
223 | "seed": 966546546,
224 | "version": 5,
225 | "versionNonce": 216227826,
226 | "isDeleted": false,
227 | "boundElementIds": null,
228 | "text": "Sync",
229 | "fontSize": 20,
230 | "fontFamily": 1,
231 | "textAlign": "center",
232 | "verticalAlign": "middle",
233 | "baseline": 18
234 | },
235 | {
236 | "id": "cIiQ4bQUM-YdMSWIbDrj5",
237 | "type": "text",
238 | "x": 925.8330993652344,
239 | "y": 192.1473388671875,
240 | "width": 87,
241 | "height": 25,
242 | "angle": 0,
243 | "strokeColor": "#000000",
244 | "backgroundColor": "#228be6",
245 | "fillStyle": "solid",
246 | "strokeWidth": 1,
247 | "strokeStyle": "solid",
248 | "roughness": 1,
249 | "opacity": 100,
250 | "groupIds": [],
251 | "strokeSharpness": "sharp",
252 | "seed": 1937607538,
253 | "version": 9,
254 | "versionNonce": 1670070898,
255 | "isDeleted": false,
256 | "boundElementIds": null,
257 | "text": "PostSync",
258 | "fontSize": 20,
259 | "fontFamily": 1,
260 | "textAlign": "center",
261 | "verticalAlign": "middle",
262 | "baseline": 18
263 | },
264 | {
265 | "type": "line",
266 | "version": 609,
267 | "versionNonce": 1491796338,
268 | "isDeleted": false,
269 | "id": "VixWd9KKiFCFM2JaqBDZE",
270 | "fillStyle": "solid",
271 | "strokeWidth": 1,
272 | "strokeStyle": "solid",
273 | "roughness": 0,
274 | "opacity": 100,
275 | "angle": 0,
276 | "x": 679.5170288085938,
277 | "y": 235.66891479492188,
278 | "strokeColor": "#000000",
279 | "backgroundColor": "#fff",
280 | "width": 74.59948730468658,
281 | "height": 99.46598307291545,
282 | "seed": 268479790,
283 | "groupIds": [
284 | "N_NRRH8AOPXS-dDHPtjEc",
285 | "L4Xnh0C-ie1355StWxKy0",
286 | "WGDy86jOUDIWDIWF_uI1l"
287 | ],
288 | "strokeSharpness": "sharp",
289 | "boundElementIds": [],
290 | "startBinding": null,
291 | "endBinding": null,
292 | "lastCommittedPoint": null,
293 | "startArrowhead": null,
294 | "endArrowhead": null,
295 | "points": [
296 | [
297 | 0,
298 | 0
299 | ],
300 | [
301 | 49.732991536457696,
302 | 0
303 | ],
304 | [
305 | 74.59948730468658,
306 | 24.866495768228862
307 | ],
308 | [
309 | 74.59948730468658,
310 | 99.46598307291545
311 | ],
312 | [
313 | 0,
314 | 99.46598307291545
315 | ],
316 | [
317 | 0,
318 | 0
319 | ]
320 | ]
321 | },
322 | {
323 | "type": "line",
324 | "version": 421,
325 | "versionNonce": 1079346862,
326 | "isDeleted": false,
327 | "id": "jNwMchGdNIb4zsT5jYqTo",
328 | "fillStyle": "solid",
329 | "strokeWidth": 1,
330 | "strokeStyle": "solid",
331 | "roughness": 0,
332 | "opacity": 100,
333 | "angle": 0,
334 | "x": 729.2500203450525,
335 | "y": 235.66891479492188,
336 | "strokeColor": "#000000",
337 | "backgroundColor": "#fff",
338 | "width": 0,
339 | "height": 24.866495768228862,
340 | "seed": 1871611058,
341 | "groupIds": [
342 | "N_NRRH8AOPXS-dDHPtjEc",
343 | "L4Xnh0C-ie1355StWxKy0",
344 | "WGDy86jOUDIWDIWF_uI1l"
345 | ],
346 | "strokeSharpness": "sharp",
347 | "boundElementIds": [],
348 | "startBinding": null,
349 | "endBinding": null,
350 | "lastCommittedPoint": null,
351 | "startArrowhead": null,
352 | "endArrowhead": null,
353 | "points": [
354 | [
355 | 0,
356 | 0
357 | ],
358 | [
359 | 0,
360 | 24.866495768228862
361 | ]
362 | ]
363 | },
364 | {
365 | "type": "line",
366 | "version": 419,
367 | "versionNonce": 1051591474,
368 | "isDeleted": false,
369 | "id": "Hif-1jhSGec10lR40psDP",
370 | "fillStyle": "solid",
371 | "strokeWidth": 1,
372 | "strokeStyle": "solid",
373 | "roughness": 0,
374 | "opacity": 100,
375 | "angle": 0,
376 | "x": 729.2500203450525,
377 | "y": 260.53541056315123,
378 | "strokeColor": "#000000",
379 | "backgroundColor": "#fff",
380 | "width": 24.866495768228862,
381 | "height": 0,
382 | "seed": 2047793006,
383 | "groupIds": [
384 | "N_NRRH8AOPXS-dDHPtjEc",
385 | "L4Xnh0C-ie1355StWxKy0",
386 | "WGDy86jOUDIWDIWF_uI1l"
387 | ],
388 | "strokeSharpness": "sharp",
389 | "boundElementIds": [],
390 | "startBinding": null,
391 | "endBinding": null,
392 | "lastCommittedPoint": null,
393 | "startArrowhead": null,
394 | "endArrowhead": null,
395 | "points": [
396 | [
397 | 0,
398 | 0
399 | ],
400 | [
401 | 24.866495768228862,
402 | 0
403 | ]
404 | ]
405 | },
406 | {
407 | "type": "rectangle",
408 | "version": 313,
409 | "versionNonce": 1301053678,
410 | "isDeleted": false,
411 | "id": "qtGhQZ2fg9R1UEH0NFzVm",
412 | "fillStyle": "hachure",
413 | "strokeWidth": 1,
414 | "strokeStyle": "solid",
415 | "roughness": 0,
416 | "opacity": 100,
417 | "angle": 0,
418 | "x": 679.5170288085938,
419 | "y": 235.66891479492188,
420 | "strokeColor": "transparent",
421 | "backgroundColor": "transparent",
422 | "width": 74.59948730468658,
423 | "height": 99.46598307291545,
424 | "seed": 343875186,
425 | "groupIds": [
426 | "L4Xnh0C-ie1355StWxKy0",
427 | "WGDy86jOUDIWDIWF_uI1l"
428 | ],
429 | "strokeSharpness": "sharp",
430 | "boundElementIds": []
431 | },
432 | {
433 | "id": "scM42qY73dllmPP5CuwSc",
434 | "type": "text",
435 | "x": 688.8680419921875,
436 | "y": 240.3780517578125,
437 | "width": 16,
438 | "height": 20,
439 | "angle": 0,
440 | "strokeColor": "#000000",
441 | "backgroundColor": "#228be6",
442 | "fillStyle": "solid",
443 | "strokeWidth": 1,
444 | "strokeStyle": "solid",
445 | "roughness": 1,
446 | "opacity": 100,
447 | "groupIds": [
448 | "WGDy86jOUDIWDIWF_uI1l"
449 | ],
450 | "strokeSharpness": "sharp",
451 | "seed": 511439666,
452 | "version": 111,
453 | "versionNonce": 2804978,
454 | "isDeleted": false,
455 | "boundElementIds": null,
456 | "text": "ns",
457 | "fontSize": 16,
458 | "fontFamily": 1,
459 | "textAlign": "left",
460 | "verticalAlign": "top",
461 | "baseline": 14
462 | },
463 | {
464 | "id": "-OCuwHOm6hBw5jvPqkxuV",
465 | "type": "text",
466 | "x": 687.7424926757812,
467 | "y": 314.9360656738281,
468 | "width": 11,
469 | "height": 20,
470 | "angle": 0,
471 | "strokeColor": "#000000",
472 | "backgroundColor": "#228be6",
473 | "fillStyle": "solid",
474 | "strokeWidth": 1,
475 | "strokeStyle": "solid",
476 | "roughness": 1,
477 | "opacity": 100,
478 | "groupIds": [
479 | "WGDy86jOUDIWDIWF_uI1l"
480 | ],
481 | "strokeSharpness": "sharp",
482 | "seed": 206481006,
483 | "version": 116,
484 | "versionNonce": 107623214,
485 | "isDeleted": false,
486 | "boundElementIds": null,
487 | "text": "-1",
488 | "fontSize": 16,
489 | "fontFamily": 1,
490 | "textAlign": "left",
491 | "verticalAlign": "top",
492 | "baseline": 14
493 | },
494 | {
495 | "type": "line",
496 | "version": 664,
497 | "versionNonce": 24648430,
498 | "isDeleted": false,
499 | "id": "Fu_NxtKMQcuM4atzZ3lll",
500 | "fillStyle": "solid",
501 | "strokeWidth": 1,
502 | "strokeStyle": "solid",
503 | "roughness": 0,
504 | "opacity": 100,
505 | "angle": 0,
506 | "x": 679.1301879882812,
507 | "y": 341.5321146647142,
508 | "strokeColor": "#000000",
509 | "backgroundColor": "#fff",
510 | "width": 74.59948730468658,
511 | "height": 99.46598307291545,
512 | "seed": 596490354,
513 | "groupIds": [
514 | "ofhm7kJ3msxeT_qiHL3DZ",
515 | "DTL7boJsfDXf-JmHEZrGu",
516 | "MvJtqAiRPu8lXHzxB9MDe"
517 | ],
518 | "strokeSharpness": "sharp",
519 | "boundElementIds": [],
520 | "startBinding": null,
521 | "endBinding": null,
522 | "lastCommittedPoint": null,
523 | "startArrowhead": null,
524 | "endArrowhead": null,
525 | "points": [
526 | [
527 | 0,
528 | 0
529 | ],
530 | [
531 | 49.732991536457696,
532 | 0
533 | ],
534 | [
535 | 74.59948730468658,
536 | 24.866495768228862
537 | ],
538 | [
539 | 74.59948730468658,
540 | 99.46598307291545
541 | ],
542 | [
543 | 0,
544 | 99.46598307291545
545 | ],
546 | [
547 | 0,
548 | 0
549 | ]
550 | ]
551 | },
552 | {
553 | "type": "line",
554 | "version": 476,
555 | "versionNonce": 98423538,
556 | "isDeleted": false,
557 | "id": "y_yDEZlAWK2T-fuJv-sp8",
558 | "fillStyle": "solid",
559 | "strokeWidth": 1,
560 | "strokeStyle": "solid",
561 | "roughness": 0,
562 | "opacity": 100,
563 | "angle": 0,
564 | "x": 728.86317952474,
565 | "y": 341.5321146647142,
566 | "strokeColor": "#000000",
567 | "backgroundColor": "#fff",
568 | "width": 0,
569 | "height": 24.866495768228862,
570 | "seed": 1872609198,
571 | "groupIds": [
572 | "ofhm7kJ3msxeT_qiHL3DZ",
573 | "DTL7boJsfDXf-JmHEZrGu",
574 | "MvJtqAiRPu8lXHzxB9MDe"
575 | ],
576 | "strokeSharpness": "sharp",
577 | "boundElementIds": [],
578 | "startBinding": null,
579 | "endBinding": null,
580 | "lastCommittedPoint": null,
581 | "startArrowhead": null,
582 | "endArrowhead": null,
583 | "points": [
584 | [
585 | 0,
586 | 0
587 | ],
588 | [
589 | 0,
590 | 24.866495768228862
591 | ]
592 | ]
593 | },
594 | {
595 | "type": "line",
596 | "version": 474,
597 | "versionNonce": 768773422,
598 | "isDeleted": false,
599 | "id": "AfWqP-EHBu_Z2RyGuvugD",
600 | "fillStyle": "solid",
601 | "strokeWidth": 1,
602 | "strokeStyle": "solid",
603 | "roughness": 0,
604 | "opacity": 100,
605 | "angle": 0,
606 | "x": 728.86317952474,
607 | "y": 366.39861043294354,
608 | "strokeColor": "#000000",
609 | "backgroundColor": "#fff",
610 | "width": 24.866495768228862,
611 | "height": 0,
612 | "seed": 836885042,
613 | "groupIds": [
614 | "ofhm7kJ3msxeT_qiHL3DZ",
615 | "DTL7boJsfDXf-JmHEZrGu",
616 | "MvJtqAiRPu8lXHzxB9MDe"
617 | ],
618 | "strokeSharpness": "sharp",
619 | "boundElementIds": [],
620 | "startBinding": null,
621 | "endBinding": null,
622 | "lastCommittedPoint": null,
623 | "startArrowhead": null,
624 | "endArrowhead": null,
625 | "points": [
626 | [
627 | 0,
628 | 0
629 | ],
630 | [
631 | 24.866495768228862,
632 | 0
633 | ]
634 | ]
635 | },
636 | {
637 | "type": "rectangle",
638 | "version": 368,
639 | "versionNonce": 944415922,
640 | "isDeleted": false,
641 | "id": "692TbhLKBGhd4sbMWb7WX",
642 | "fillStyle": "hachure",
643 | "strokeWidth": 1,
644 | "strokeStyle": "solid",
645 | "roughness": 0,
646 | "opacity": 100,
647 | "angle": 0,
648 | "x": 679.1301879882812,
649 | "y": 341.5321146647142,
650 | "strokeColor": "transparent",
651 | "backgroundColor": "transparent",
652 | "width": 74.59948730468658,
653 | "height": 99.46598307291545,
654 | "seed": 962959854,
655 | "groupIds": [
656 | "DTL7boJsfDXf-JmHEZrGu",
657 | "MvJtqAiRPu8lXHzxB9MDe"
658 | ],
659 | "strokeSharpness": "sharp",
660 | "boundElementIds": []
661 | },
662 | {
663 | "type": "text",
664 | "version": 191,
665 | "versionNonce": 1870360878,
666 | "isDeleted": false,
667 | "id": "-fm7bus6B_-BRiDTK9VBH",
668 | "fillStyle": "solid",
669 | "strokeWidth": 1,
670 | "strokeStyle": "solid",
671 | "roughness": 1,
672 | "opacity": 100,
673 | "angle": 0,
674 | "x": 688.481201171875,
675 | "y": 346.2412516276048,
676 | "strokeColor": "#000000",
677 | "backgroundColor": "#228be6",
678 | "width": 50,
679 | "height": 40,
680 | "seed": 751551474,
681 | "groupIds": [
682 | "MvJtqAiRPu8lXHzxB9MDe"
683 | ],
684 | "strokeSharpness": "sharp",
685 | "boundElementIds": [],
686 | "fontSize": 16,
687 | "fontFamily": 1,
688 | "text": "PSQL\nDeploy",
689 | "baseline": 34,
690 | "textAlign": "left",
691 | "verticalAlign": "top"
692 | },
693 | {
694 | "type": "text",
695 | "version": 172,
696 | "versionNonce": 1997289134,
697 | "isDeleted": false,
698 | "id": "G1cLarTTpnI3WXHenYcKK",
699 | "fillStyle": "solid",
700 | "strokeWidth": 1,
701 | "strokeStyle": "solid",
702 | "roughness": 1,
703 | "opacity": 100,
704 | "angle": 0,
705 | "x": 687.3556518554688,
706 | "y": 420.79926554362044,
707 | "strokeColor": "#000000",
708 | "backgroundColor": "#228be6",
709 | "width": 11,
710 | "height": 20,
711 | "seed": 699935790,
712 | "groupIds": [
713 | "MvJtqAiRPu8lXHzxB9MDe"
714 | ],
715 | "strokeSharpness": "sharp",
716 | "boundElementIds": [],
717 | "fontSize": 16,
718 | "fontFamily": 1,
719 | "text": "0",
720 | "baseline": 14,
721 | "textAlign": "left",
722 | "verticalAlign": "top"
723 | },
724 | {
725 | "type": "line",
726 | "version": 715,
727 | "versionNonce": 1381303150,
728 | "isDeleted": false,
729 | "id": "jHN0VcrlTuSHoHRA_clNM",
730 | "fillStyle": "solid",
731 | "strokeWidth": 1,
732 | "strokeStyle": "solid",
733 | "roughness": 0,
734 | "opacity": 100,
735 | "angle": 0,
736 | "x": 764.0636596679688,
737 | "y": 340.91819254557356,
738 | "strokeColor": "#000000",
739 | "backgroundColor": "#fff",
740 | "width": 74.59948730468658,
741 | "height": 99.46598307291545,
742 | "seed": 1802312946,
743 | "groupIds": [
744 | "fjiN_u1cX8ndQ3j8_W_HJ",
745 | "EtbugCtymOVBuSxJnayzP",
746 | "54662ufsmD5oG60w_pyKe"
747 | ],
748 | "strokeSharpness": "sharp",
749 | "boundElementIds": [],
750 | "startBinding": null,
751 | "endBinding": null,
752 | "lastCommittedPoint": null,
753 | "startArrowhead": null,
754 | "endArrowhead": null,
755 | "points": [
756 | [
757 | 0,
758 | 0
759 | ],
760 | [
761 | 49.732991536457696,
762 | 0
763 | ],
764 | [
765 | 74.59948730468658,
766 | 24.866495768228862
767 | ],
768 | [
769 | 74.59948730468658,
770 | 99.46598307291545
771 | ],
772 | [
773 | 0,
774 | 99.46598307291545
775 | ],
776 | [
777 | 0,
778 | 0
779 | ]
780 | ]
781 | },
782 | {
783 | "type": "line",
784 | "version": 527,
785 | "versionNonce": 1812050546,
786 | "isDeleted": false,
787 | "id": "bGkNU41ZnHYKFf_pyV5wh",
788 | "fillStyle": "solid",
789 | "strokeWidth": 1,
790 | "strokeStyle": "solid",
791 | "roughness": 0,
792 | "opacity": 100,
793 | "angle": 0,
794 | "x": 813.7966512044275,
795 | "y": 340.91819254557356,
796 | "strokeColor": "#000000",
797 | "backgroundColor": "#fff",
798 | "width": 0,
799 | "height": 24.866495768228862,
800 | "seed": 590668590,
801 | "groupIds": [
802 | "fjiN_u1cX8ndQ3j8_W_HJ",
803 | "EtbugCtymOVBuSxJnayzP",
804 | "54662ufsmD5oG60w_pyKe"
805 | ],
806 | "strokeSharpness": "sharp",
807 | "boundElementIds": [],
808 | "startBinding": null,
809 | "endBinding": null,
810 | "lastCommittedPoint": null,
811 | "startArrowhead": null,
812 | "endArrowhead": null,
813 | "points": [
814 | [
815 | 0,
816 | 0
817 | ],
818 | [
819 | 0,
820 | 24.866495768228862
821 | ]
822 | ]
823 | },
824 | {
825 | "type": "line",
826 | "version": 525,
827 | "versionNonce": 335439278,
828 | "isDeleted": false,
829 | "id": "rPgsQXQ3jrGBtjZWSP2Q0",
830 | "fillStyle": "solid",
831 | "strokeWidth": 1,
832 | "strokeStyle": "solid",
833 | "roughness": 0,
834 | "opacity": 100,
835 | "angle": 0,
836 | "x": 813.7966512044275,
837 | "y": 365.7846883138029,
838 | "strokeColor": "#000000",
839 | "backgroundColor": "#fff",
840 | "width": 24.866495768228862,
841 | "height": 0,
842 | "seed": 23113394,
843 | "groupIds": [
844 | "fjiN_u1cX8ndQ3j8_W_HJ",
845 | "EtbugCtymOVBuSxJnayzP",
846 | "54662ufsmD5oG60w_pyKe"
847 | ],
848 | "strokeSharpness": "sharp",
849 | "boundElementIds": [],
850 | "startBinding": null,
851 | "endBinding": null,
852 | "lastCommittedPoint": null,
853 | "startArrowhead": null,
854 | "endArrowhead": null,
855 | "points": [
856 | [
857 | 0,
858 | 0
859 | ],
860 | [
861 | 24.866495768228862,
862 | 0
863 | ]
864 | ]
865 | },
866 | {
867 | "type": "rectangle",
868 | "version": 419,
869 | "versionNonce": 2110166066,
870 | "isDeleted": false,
871 | "id": "Jb5K3cfi_SfmwCJrahQS0",
872 | "fillStyle": "hachure",
873 | "strokeWidth": 1,
874 | "strokeStyle": "solid",
875 | "roughness": 0,
876 | "opacity": 100,
877 | "angle": 0,
878 | "x": 764.0636596679688,
879 | "y": 340.91819254557356,
880 | "strokeColor": "transparent",
881 | "backgroundColor": "transparent",
882 | "width": 74.59948730468658,
883 | "height": 99.46598307291545,
884 | "seed": 1162628462,
885 | "groupIds": [
886 | "EtbugCtymOVBuSxJnayzP",
887 | "54662ufsmD5oG60w_pyKe"
888 | ],
889 | "strokeSharpness": "sharp",
890 | "boundElementIds": []
891 | },
892 | {
893 | "type": "text",
894 | "version": 249,
895 | "versionNonce": 27800942,
896 | "isDeleted": false,
897 | "id": "UwjnJtRH3DX8GbodDKYjq",
898 | "fillStyle": "solid",
899 | "strokeWidth": 1,
900 | "strokeStyle": "solid",
901 | "roughness": 1,
902 | "opacity": 100,
903 | "angle": 0,
904 | "x": 773.4146728515625,
905 | "y": 345.6273295084642,
906 | "strokeColor": "#000000",
907 | "backgroundColor": "#228be6",
908 | "width": 54,
909 | "height": 40,
910 | "seed": 1048316018,
911 | "groupIds": [
912 | "54662ufsmD5oG60w_pyKe"
913 | ],
914 | "strokeSharpness": "sharp",
915 | "boundElementIds": [],
916 | "fontSize": 16,
917 | "fontFamily": 1,
918 | "text": "PSQL\nService",
919 | "baseline": 34,
920 | "textAlign": "left",
921 | "verticalAlign": "top"
922 | },
923 | {
924 | "type": "text",
925 | "version": 223,
926 | "versionNonce": 1342782962,
927 | "isDeleted": false,
928 | "id": "yMXs9rUgZhijFj-j6RzNv",
929 | "fillStyle": "solid",
930 | "strokeWidth": 1,
931 | "strokeStyle": "solid",
932 | "roughness": 1,
933 | "opacity": 100,
934 | "angle": 0,
935 | "x": 772.2891235351562,
936 | "y": 420.1853434244798,
937 | "strokeColor": "#000000",
938 | "backgroundColor": "#228be6",
939 | "width": 11,
940 | "height": 20,
941 | "seed": 2105307054,
942 | "groupIds": [
943 | "54662ufsmD5oG60w_pyKe"
944 | ],
945 | "strokeSharpness": "sharp",
946 | "boundElementIds": [],
947 | "fontSize": 16,
948 | "fontFamily": 1,
949 | "text": "0",
950 | "baseline": 14,
951 | "textAlign": "left",
952 | "verticalAlign": "top"
953 | },
954 | {
955 | "type": "line",
956 | "version": 716,
957 | "versionNonce": 293176114,
958 | "isDeleted": false,
959 | "id": "6WKrLGOsnVj5lHrlOmZV6",
960 | "fillStyle": "solid",
961 | "strokeWidth": 1,
962 | "strokeStyle": "solid",
963 | "roughness": 0,
964 | "opacity": 100,
965 | "angle": 0,
966 | "x": 680.9835205078125,
967 | "y": 453.02903238932356,
968 | "strokeColor": "#000000",
969 | "backgroundColor": "#fff",
970 | "width": 74.59948730468658,
971 | "height": 99.46598307291545,
972 | "seed": 370890670,
973 | "groupIds": [
974 | "6d1IKHJzw-ObRArAjMq-T",
975 | "InRBUmNTCKZXfhUbpvAOI",
976 | "vm9kGMOYSGcRbIbIGCtLK"
977 | ],
978 | "strokeSharpness": "sharp",
979 | "boundElementIds": [],
980 | "startBinding": null,
981 | "endBinding": null,
982 | "lastCommittedPoint": null,
983 | "startArrowhead": null,
984 | "endArrowhead": null,
985 | "points": [
986 | [
987 | 0,
988 | 0
989 | ],
990 | [
991 | 49.732991536457696,
992 | 0
993 | ],
994 | [
995 | 74.59948730468658,
996 | 24.866495768228862
997 | ],
998 | [
999 | 74.59948730468658,
1000 | 99.46598307291545
1001 | ],
1002 | [
1003 | 0,
1004 | 99.46598307291545
1005 | ],
1006 | [
1007 | 0,
1008 | 0
1009 | ]
1010 | ]
1011 | },
1012 | {
1013 | "type": "line",
1014 | "version": 528,
1015 | "versionNonce": 2134442222,
1016 | "isDeleted": false,
1017 | "id": "pPkkioAHbff6u4gSOjTS-",
1018 | "fillStyle": "solid",
1019 | "strokeWidth": 1,
1020 | "strokeStyle": "solid",
1021 | "roughness": 0,
1022 | "opacity": 100,
1023 | "angle": 0,
1024 | "x": 730.7165120442712,
1025 | "y": 453.02903238932356,
1026 | "strokeColor": "#000000",
1027 | "backgroundColor": "#fff",
1028 | "width": 0,
1029 | "height": 24.866495768228862,
1030 | "seed": 1839841842,
1031 | "groupIds": [
1032 | "6d1IKHJzw-ObRArAjMq-T",
1033 | "InRBUmNTCKZXfhUbpvAOI",
1034 | "vm9kGMOYSGcRbIbIGCtLK"
1035 | ],
1036 | "strokeSharpness": "sharp",
1037 | "boundElementIds": [],
1038 | "startBinding": null,
1039 | "endBinding": null,
1040 | "lastCommittedPoint": null,
1041 | "startArrowhead": null,
1042 | "endArrowhead": null,
1043 | "points": [
1044 | [
1045 | 0,
1046 | 0
1047 | ],
1048 | [
1049 | 0,
1050 | 24.866495768228862
1051 | ]
1052 | ]
1053 | },
1054 | {
1055 | "type": "line",
1056 | "version": 526,
1057 | "versionNonce": 1837518066,
1058 | "isDeleted": false,
1059 | "id": "NmQVmtFTKYK58UjOuBBHf",
1060 | "fillStyle": "solid",
1061 | "strokeWidth": 1,
1062 | "strokeStyle": "solid",
1063 | "roughness": 0,
1064 | "opacity": 100,
1065 | "angle": 0,
1066 | "x": 730.7165120442712,
1067 | "y": 477.8955281575529,
1068 | "strokeColor": "#000000",
1069 | "backgroundColor": "#fff",
1070 | "width": 24.866495768228862,
1071 | "height": 0,
1072 | "seed": 1819292142,
1073 | "groupIds": [
1074 | "6d1IKHJzw-ObRArAjMq-T",
1075 | "InRBUmNTCKZXfhUbpvAOI",
1076 | "vm9kGMOYSGcRbIbIGCtLK"
1077 | ],
1078 | "strokeSharpness": "sharp",
1079 | "boundElementIds": [],
1080 | "startBinding": null,
1081 | "endBinding": null,
1082 | "lastCommittedPoint": null,
1083 | "startArrowhead": null,
1084 | "endArrowhead": null,
1085 | "points": [
1086 | [
1087 | 0,
1088 | 0
1089 | ],
1090 | [
1091 | 24.866495768228862,
1092 | 0
1093 | ]
1094 | ]
1095 | },
1096 | {
1097 | "type": "rectangle",
1098 | "version": 420,
1099 | "versionNonce": 1317450542,
1100 | "isDeleted": false,
1101 | "id": "A_XgYX0jicOwMPwBCN7Ag",
1102 | "fillStyle": "hachure",
1103 | "strokeWidth": 1,
1104 | "strokeStyle": "solid",
1105 | "roughness": 0,
1106 | "opacity": 100,
1107 | "angle": 0,
1108 | "x": 680.9835205078125,
1109 | "y": 453.02903238932356,
1110 | "strokeColor": "transparent",
1111 | "backgroundColor": "transparent",
1112 | "width": 74.59948730468658,
1113 | "height": 99.46598307291545,
1114 | "seed": 2002168818,
1115 | "groupIds": [
1116 | "InRBUmNTCKZXfhUbpvAOI",
1117 | "vm9kGMOYSGcRbIbIGCtLK"
1118 | ],
1119 | "strokeSharpness": "sharp",
1120 | "boundElementIds": []
1121 | },
1122 | {
1123 | "type": "text",
1124 | "version": 257,
1125 | "versionNonce": 1606234542,
1126 | "isDeleted": false,
1127 | "id": "3WR3obbhXhG8hJWtXWMbN",
1128 | "fillStyle": "solid",
1129 | "strokeWidth": 1,
1130 | "strokeStyle": "solid",
1131 | "roughness": 1,
1132 | "opacity": 100,
1133 | "angle": 0,
1134 | "x": 690.3345336914062,
1135 | "y": 457.7381693522142,
1136 | "strokeColor": "#000000",
1137 | "backgroundColor": "#228be6",
1138 | "width": 55,
1139 | "height": 40,
1140 | "seed": 1336919086,
1141 | "groupIds": [
1142 | "vm9kGMOYSGcRbIbIGCtLK"
1143 | ],
1144 | "strokeSharpness": "sharp",
1145 | "boundElementIds": [],
1146 | "fontSize": 16,
1147 | "fontFamily": 1,
1148 | "text": "PSQL\nSchema",
1149 | "baseline": 34,
1150 | "textAlign": "left",
1151 | "verticalAlign": "top"
1152 | },
1153 | {
1154 | "type": "text",
1155 | "version": 225,
1156 | "versionNonce": 1422832114,
1157 | "isDeleted": false,
1158 | "id": "zmsuvotKOY6uRAmNNwu3v",
1159 | "fillStyle": "solid",
1160 | "strokeWidth": 1,
1161 | "strokeStyle": "solid",
1162 | "roughness": 1,
1163 | "opacity": 100,
1164 | "angle": 0,
1165 | "x": 689.208984375,
1166 | "y": 532.2961832682298,
1167 | "strokeColor": "#000000",
1168 | "backgroundColor": "#228be6",
1169 | "width": 4,
1170 | "height": 20,
1171 | "seed": 390094258,
1172 | "groupIds": [
1173 | "vm9kGMOYSGcRbIbIGCtLK"
1174 | ],
1175 | "strokeSharpness": "sharp",
1176 | "boundElementIds": [],
1177 | "fontSize": 16,
1178 | "fontFamily": 1,
1179 | "text": "1",
1180 | "baseline": 14,
1181 | "textAlign": "left",
1182 | "verticalAlign": "top"
1183 | },
1184 | {
1185 | "type": "line",
1186 | "version": 795,
1187 | "versionNonce": 543681586,
1188 | "isDeleted": false,
1189 | "id": "ll-XbI0WwmnDod-8HMu5A",
1190 | "fillStyle": "solid",
1191 | "strokeWidth": 1,
1192 | "strokeStyle": "solid",
1193 | "roughness": 0,
1194 | "opacity": 100,
1195 | "angle": 0,
1196 | "x": 682.31640625,
1197 | "y": 560.6827799479173,
1198 | "strokeColor": "#000000",
1199 | "backgroundColor": "#fff",
1200 | "width": 74.59948730468658,
1201 | "height": 99.46598307291545,
1202 | "seed": 1757096046,
1203 | "groupIds": [
1204 | "h3NAaHOColz7vUadsOakn",
1205 | "25rkDLlZAIt5lCZ6bSIGi",
1206 | "Rmou8x47TKKAnfJJAcPvk"
1207 | ],
1208 | "strokeSharpness": "sharp",
1209 | "boundElementIds": [],
1210 | "startBinding": null,
1211 | "endBinding": null,
1212 | "lastCommittedPoint": null,
1213 | "startArrowhead": null,
1214 | "endArrowhead": null,
1215 | "points": [
1216 | [
1217 | 0,
1218 | 0
1219 | ],
1220 | [
1221 | 49.732991536457696,
1222 | 0
1223 | ],
1224 | [
1225 | 74.59948730468658,
1226 | 24.866495768228862
1227 | ],
1228 | [
1229 | 74.59948730468658,
1230 | 99.46598307291545
1231 | ],
1232 | [
1233 | 0,
1234 | 99.46598307291545
1235 | ],
1236 | [
1237 | 0,
1238 | 0
1239 | ]
1240 | ]
1241 | },
1242 | {
1243 | "type": "line",
1244 | "version": 607,
1245 | "versionNonce": 1803659246,
1246 | "isDeleted": false,
1247 | "id": "zznzg4ShNzAWIh4ONs8nJ",
1248 | "fillStyle": "solid",
1249 | "strokeWidth": 1,
1250 | "strokeStyle": "solid",
1251 | "roughness": 0,
1252 | "opacity": 100,
1253 | "angle": 0,
1254 | "x": 732.0493977864587,
1255 | "y": 560.6827799479173,
1256 | "strokeColor": "#000000",
1257 | "backgroundColor": "#fff",
1258 | "width": 0,
1259 | "height": 24.866495768228862,
1260 | "seed": 1916558706,
1261 | "groupIds": [
1262 | "h3NAaHOColz7vUadsOakn",
1263 | "25rkDLlZAIt5lCZ6bSIGi",
1264 | "Rmou8x47TKKAnfJJAcPvk"
1265 | ],
1266 | "strokeSharpness": "sharp",
1267 | "boundElementIds": [],
1268 | "startBinding": null,
1269 | "endBinding": null,
1270 | "lastCommittedPoint": null,
1271 | "startArrowhead": null,
1272 | "endArrowhead": null,
1273 | "points": [
1274 | [
1275 | 0,
1276 | 0
1277 | ],
1278 | [
1279 | 0,
1280 | 24.866495768228862
1281 | ]
1282 | ]
1283 | },
1284 | {
1285 | "type": "line",
1286 | "version": 605,
1287 | "versionNonce": 1153406450,
1288 | "isDeleted": false,
1289 | "id": "eDGcK3MtA_5ydfEAo28j1",
1290 | "fillStyle": "solid",
1291 | "strokeWidth": 1,
1292 | "strokeStyle": "solid",
1293 | "roughness": 0,
1294 | "opacity": 100,
1295 | "angle": 0,
1296 | "x": 732.0493977864587,
1297 | "y": 585.5492757161466,
1298 | "strokeColor": "#000000",
1299 | "backgroundColor": "#fff",
1300 | "width": 24.866495768228862,
1301 | "height": 0,
1302 | "seed": 609741486,
1303 | "groupIds": [
1304 | "h3NAaHOColz7vUadsOakn",
1305 | "25rkDLlZAIt5lCZ6bSIGi",
1306 | "Rmou8x47TKKAnfJJAcPvk"
1307 | ],
1308 | "strokeSharpness": "sharp",
1309 | "boundElementIds": [],
1310 | "startBinding": null,
1311 | "endBinding": null,
1312 | "lastCommittedPoint": null,
1313 | "startArrowhead": null,
1314 | "endArrowhead": null,
1315 | "points": [
1316 | [
1317 | 0,
1318 | 0
1319 | ],
1320 | [
1321 | 24.866495768228862,
1322 | 0
1323 | ]
1324 | ]
1325 | },
1326 | {
1327 | "type": "rectangle",
1328 | "version": 499,
1329 | "versionNonce": 421689902,
1330 | "isDeleted": false,
1331 | "id": "utCmXOADvAYkNYvzRltzb",
1332 | "fillStyle": "hachure",
1333 | "strokeWidth": 1,
1334 | "strokeStyle": "solid",
1335 | "roughness": 0,
1336 | "opacity": 100,
1337 | "angle": 0,
1338 | "x": 682.31640625,
1339 | "y": 560.6827799479173,
1340 | "strokeColor": "transparent",
1341 | "backgroundColor": "transparent",
1342 | "width": 74.59948730468658,
1343 | "height": 99.46598307291545,
1344 | "seed": 1567874866,
1345 | "groupIds": [
1346 | "25rkDLlZAIt5lCZ6bSIGi",
1347 | "Rmou8x47TKKAnfJJAcPvk"
1348 | ],
1349 | "strokeSharpness": "sharp",
1350 | "boundElementIds": []
1351 | },
1352 | {
1353 | "type": "text",
1354 | "version": 351,
1355 | "versionNonce": 1999434478,
1356 | "isDeleted": false,
1357 | "id": "zx_mnWBI4kmn0k3G0Orie",
1358 | "fillStyle": "solid",
1359 | "strokeWidth": 1,
1360 | "strokeStyle": "solid",
1361 | "roughness": 1,
1362 | "opacity": 100,
1363 | "angle": 0,
1364 | "x": 691.6674194335938,
1365 | "y": 565.3919169108079,
1366 | "strokeColor": "#000000",
1367 | "backgroundColor": "#228be6",
1368 | "width": 50,
1369 | "height": 40,
1370 | "seed": 1268933870,
1371 | "groupIds": [
1372 | "Rmou8x47TKKAnfJJAcPvk"
1373 | ],
1374 | "strokeSharpness": "sharp",
1375 | "boundElementIds": [],
1376 | "fontSize": 16,
1377 | "fontFamily": 1,
1378 | "text": "TODO\nDeploy",
1379 | "baseline": 34,
1380 | "textAlign": "left",
1381 | "verticalAlign": "top"
1382 | },
1383 | {
1384 | "type": "text",
1385 | "version": 305,
1386 | "versionNonce": 1436641390,
1387 | "isDeleted": false,
1388 | "id": "dGuaO_vrJqqNrHaJwWP1j",
1389 | "fillStyle": "solid",
1390 | "strokeWidth": 1,
1391 | "strokeStyle": "solid",
1392 | "roughness": 1,
1393 | "opacity": 100,
1394 | "angle": 0,
1395 | "x": 690.5418701171875,
1396 | "y": 639.9499308268236,
1397 | "strokeColor": "#000000",
1398 | "backgroundColor": "#228be6",
1399 | "width": 11,
1400 | "height": 20,
1401 | "seed": 30746866,
1402 | "groupIds": [
1403 | "Rmou8x47TKKAnfJJAcPvk"
1404 | ],
1405 | "strokeSharpness": "sharp",
1406 | "boundElementIds": [],
1407 | "fontSize": 16,
1408 | "fontFamily": 1,
1409 | "text": "2",
1410 | "baseline": 14,
1411 | "textAlign": "left",
1412 | "verticalAlign": "top"
1413 | },
1414 | {
1415 | "type": "line",
1416 | "version": 846,
1417 | "versionNonce": 1077759278,
1418 | "isDeleted": false,
1419 | "id": "V7gIu9Fcv1MMQ-7ppOomD",
1420 | "fillStyle": "solid",
1421 | "strokeWidth": 1,
1422 | "strokeStyle": "solid",
1423 | "roughness": 0,
1424 | "opacity": 100,
1425 | "angle": 0,
1426 | "x": 771.1265869140625,
1427 | "y": 559.6554972330733,
1428 | "strokeColor": "#000000",
1429 | "backgroundColor": "#fff",
1430 | "width": 74.59948730468658,
1431 | "height": 99.46598307291545,
1432 | "seed": 257531698,
1433 | "groupIds": [
1434 | "ws1aFqQqAXLUCeTO9yPB8",
1435 | "KHG93l2vDLvPb6OWxwHwa",
1436 | "YJFzs1-rgMh7wMfKMwrZ6"
1437 | ],
1438 | "strokeSharpness": "sharp",
1439 | "boundElementIds": [],
1440 | "startBinding": null,
1441 | "endBinding": null,
1442 | "lastCommittedPoint": null,
1443 | "startArrowhead": null,
1444 | "endArrowhead": null,
1445 | "points": [
1446 | [
1447 | 0,
1448 | 0
1449 | ],
1450 | [
1451 | 49.732991536457696,
1452 | 0
1453 | ],
1454 | [
1455 | 74.59948730468658,
1456 | 24.866495768228862
1457 | ],
1458 | [
1459 | 74.59948730468658,
1460 | 99.46598307291545
1461 | ],
1462 | [
1463 | 0,
1464 | 99.46598307291545
1465 | ],
1466 | [
1467 | 0,
1468 | 0
1469 | ]
1470 | ]
1471 | },
1472 | {
1473 | "type": "line",
1474 | "version": 658,
1475 | "versionNonce": 1726735538,
1476 | "isDeleted": false,
1477 | "id": "sihoM7WbaY750wlNTGELs",
1478 | "fillStyle": "solid",
1479 | "strokeWidth": 1,
1480 | "strokeStyle": "solid",
1481 | "roughness": 0,
1482 | "opacity": 100,
1483 | "angle": 0,
1484 | "x": 820.8595784505212,
1485 | "y": 559.6554972330733,
1486 | "strokeColor": "#000000",
1487 | "backgroundColor": "#fff",
1488 | "width": 0,
1489 | "height": 24.866495768228862,
1490 | "seed": 1677239534,
1491 | "groupIds": [
1492 | "ws1aFqQqAXLUCeTO9yPB8",
1493 | "KHG93l2vDLvPb6OWxwHwa",
1494 | "YJFzs1-rgMh7wMfKMwrZ6"
1495 | ],
1496 | "strokeSharpness": "sharp",
1497 | "boundElementIds": [],
1498 | "startBinding": null,
1499 | "endBinding": null,
1500 | "lastCommittedPoint": null,
1501 | "startArrowhead": null,
1502 | "endArrowhead": null,
1503 | "points": [
1504 | [
1505 | 0,
1506 | 0
1507 | ],
1508 | [
1509 | 0,
1510 | 24.866495768228862
1511 | ]
1512 | ]
1513 | },
1514 | {
1515 | "type": "line",
1516 | "version": 656,
1517 | "versionNonce": 968324974,
1518 | "isDeleted": false,
1519 | "id": "uTDEmZRVp1C45lKUQSXzK",
1520 | "fillStyle": "solid",
1521 | "strokeWidth": 1,
1522 | "strokeStyle": "solid",
1523 | "roughness": 0,
1524 | "opacity": 100,
1525 | "angle": 0,
1526 | "x": 820.8595784505212,
1527 | "y": 584.5219930013028,
1528 | "strokeColor": "#000000",
1529 | "backgroundColor": "#fff",
1530 | "width": 24.866495768228862,
1531 | "height": 0,
1532 | "seed": 1896016114,
1533 | "groupIds": [
1534 | "ws1aFqQqAXLUCeTO9yPB8",
1535 | "KHG93l2vDLvPb6OWxwHwa",
1536 | "YJFzs1-rgMh7wMfKMwrZ6"
1537 | ],
1538 | "strokeSharpness": "sharp",
1539 | "boundElementIds": [],
1540 | "startBinding": null,
1541 | "endBinding": null,
1542 | "lastCommittedPoint": null,
1543 | "startArrowhead": null,
1544 | "endArrowhead": null,
1545 | "points": [
1546 | [
1547 | 0,
1548 | 0
1549 | ],
1550 | [
1551 | 24.866495768228862,
1552 | 0
1553 | ]
1554 | ]
1555 | },
1556 | {
1557 | "type": "rectangle",
1558 | "version": 550,
1559 | "versionNonce": 2033221234,
1560 | "isDeleted": false,
1561 | "id": "R1uBMule0PDIM1VaQXKaI",
1562 | "fillStyle": "hachure",
1563 | "strokeWidth": 1,
1564 | "strokeStyle": "solid",
1565 | "roughness": 0,
1566 | "opacity": 100,
1567 | "angle": 0,
1568 | "x": 771.1265869140625,
1569 | "y": 559.6554972330733,
1570 | "strokeColor": "transparent",
1571 | "backgroundColor": "transparent",
1572 | "width": 74.59948730468658,
1573 | "height": 99.46598307291545,
1574 | "seed": 1135728430,
1575 | "groupIds": [
1576 | "KHG93l2vDLvPb6OWxwHwa",
1577 | "YJFzs1-rgMh7wMfKMwrZ6"
1578 | ],
1579 | "strokeSharpness": "sharp",
1580 | "boundElementIds": []
1581 | },
1582 | {
1583 | "type": "text",
1584 | "version": 409,
1585 | "versionNonce": 1477874354,
1586 | "isDeleted": false,
1587 | "id": "QgekqwFpZEvuB7ZYmHrfs",
1588 | "fillStyle": "solid",
1589 | "strokeWidth": 1,
1590 | "strokeStyle": "solid",
1591 | "roughness": 1,
1592 | "opacity": 100,
1593 | "angle": 0,
1594 | "x": 780.4776000976562,
1595 | "y": 564.364634195964,
1596 | "strokeColor": "#000000",
1597 | "backgroundColor": "#228be6",
1598 | "width": 54,
1599 | "height": 40,
1600 | "seed": 1784478386,
1601 | "groupIds": [
1602 | "YJFzs1-rgMh7wMfKMwrZ6"
1603 | ],
1604 | "strokeSharpness": "sharp",
1605 | "boundElementIds": [],
1606 | "fontSize": 16,
1607 | "fontFamily": 1,
1608 | "text": "TODO\nService",
1609 | "baseline": 34,
1610 | "textAlign": "left",
1611 | "verticalAlign": "top"
1612 | },
1613 | {
1614 | "type": "text",
1615 | "version": 356,
1616 | "versionNonce": 322691122,
1617 | "isDeleted": false,
1618 | "id": "xHCVsBKxHD3SYMZFyh_Xq",
1619 | "fillStyle": "solid",
1620 | "strokeWidth": 1,
1621 | "strokeStyle": "solid",
1622 | "roughness": 1,
1623 | "opacity": 100,
1624 | "angle": 0,
1625 | "x": 779.35205078125,
1626 | "y": 638.9226481119796,
1627 | "strokeColor": "#000000",
1628 | "backgroundColor": "#228be6",
1629 | "width": 11,
1630 | "height": 20,
1631 | "seed": 839565678,
1632 | "groupIds": [
1633 | "YJFzs1-rgMh7wMfKMwrZ6"
1634 | ],
1635 | "strokeSharpness": "sharp",
1636 | "boundElementIds": [],
1637 | "fontSize": 16,
1638 | "fontFamily": 1,
1639 | "text": "2",
1640 | "baseline": 14,
1641 | "textAlign": "left",
1642 | "verticalAlign": "top"
1643 | },
1644 | {
1645 | "type": "line",
1646 | "version": 865,
1647 | "versionNonce": 615798194,
1648 | "isDeleted": false,
1649 | "id": "AsRQXnsPoshj7SSFlpmq3",
1650 | "fillStyle": "solid",
1651 | "strokeWidth": 1,
1652 | "strokeStyle": "solid",
1653 | "roughness": 0,
1654 | "opacity": 100,
1655 | "angle": 0,
1656 | "x": 684.1033325195312,
1657 | "y": 665.282358805339,
1658 | "strokeColor": "#000000",
1659 | "backgroundColor": "#fff",
1660 | "width": 74.59948730468658,
1661 | "height": 99.46598307291545,
1662 | "seed": 1725647790,
1663 | "groupIds": [
1664 | "vj_ij4pYmB1NtBznjNzQa",
1665 | "U1CIN4R1UPzhGcIVsU4Ho",
1666 | "7svwLlRUR07-vD_nonUWr"
1667 | ],
1668 | "strokeSharpness": "sharp",
1669 | "boundElementIds": [],
1670 | "startBinding": null,
1671 | "endBinding": null,
1672 | "lastCommittedPoint": null,
1673 | "startArrowhead": null,
1674 | "endArrowhead": null,
1675 | "points": [
1676 | [
1677 | 0,
1678 | 0
1679 | ],
1680 | [
1681 | 49.732991536457696,
1682 | 0
1683 | ],
1684 | [
1685 | 74.59948730468658,
1686 | 24.866495768228862
1687 | ],
1688 | [
1689 | 74.59948730468658,
1690 | 99.46598307291545
1691 | ],
1692 | [
1693 | 0,
1694 | 99.46598307291545
1695 | ],
1696 | [
1697 | 0,
1698 | 0
1699 | ]
1700 | ]
1701 | },
1702 | {
1703 | "type": "line",
1704 | "version": 677,
1705 | "versionNonce": 1873450606,
1706 | "isDeleted": false,
1707 | "id": "lCtsBcZyKtqrlKt9zKt1Q",
1708 | "fillStyle": "solid",
1709 | "strokeWidth": 1,
1710 | "strokeStyle": "solid",
1711 | "roughness": 0,
1712 | "opacity": 100,
1713 | "angle": 0,
1714 | "x": 733.83632405599,
1715 | "y": 665.282358805339,
1716 | "strokeColor": "#000000",
1717 | "backgroundColor": "#fff",
1718 | "width": 0,
1719 | "height": 24.866495768228862,
1720 | "seed": 1248818,
1721 | "groupIds": [
1722 | "vj_ij4pYmB1NtBznjNzQa",
1723 | "U1CIN4R1UPzhGcIVsU4Ho",
1724 | "7svwLlRUR07-vD_nonUWr"
1725 | ],
1726 | "strokeSharpness": "sharp",
1727 | "boundElementIds": [],
1728 | "startBinding": null,
1729 | "endBinding": null,
1730 | "lastCommittedPoint": null,
1731 | "startArrowhead": null,
1732 | "endArrowhead": null,
1733 | "points": [
1734 | [
1735 | 0,
1736 | 0
1737 | ],
1738 | [
1739 | 0,
1740 | 24.866495768228862
1741 | ]
1742 | ]
1743 | },
1744 | {
1745 | "type": "line",
1746 | "version": 675,
1747 | "versionNonce": 650301298,
1748 | "isDeleted": false,
1749 | "id": "l25j3zrzM1ZMOSvSu0JPb",
1750 | "fillStyle": "solid",
1751 | "strokeWidth": 1,
1752 | "strokeStyle": "solid",
1753 | "roughness": 0,
1754 | "opacity": 100,
1755 | "angle": 0,
1756 | "x": 733.83632405599,
1757 | "y": 690.1488545735684,
1758 | "strokeColor": "#000000",
1759 | "backgroundColor": "#fff",
1760 | "width": 24.866495768228862,
1761 | "height": 0,
1762 | "seed": 152151534,
1763 | "groupIds": [
1764 | "vj_ij4pYmB1NtBznjNzQa",
1765 | "U1CIN4R1UPzhGcIVsU4Ho",
1766 | "7svwLlRUR07-vD_nonUWr"
1767 | ],
1768 | "strokeSharpness": "sharp",
1769 | "boundElementIds": [],
1770 | "startBinding": null,
1771 | "endBinding": null,
1772 | "lastCommittedPoint": null,
1773 | "startArrowhead": null,
1774 | "endArrowhead": null,
1775 | "points": [
1776 | [
1777 | 0,
1778 | 0
1779 | ],
1780 | [
1781 | 24.866495768228862,
1782 | 0
1783 | ]
1784 | ]
1785 | },
1786 | {
1787 | "type": "rectangle",
1788 | "version": 569,
1789 | "versionNonce": 925472942,
1790 | "isDeleted": false,
1791 | "id": "50EQNuxT8JIquNApAHW5f",
1792 | "fillStyle": "hachure",
1793 | "strokeWidth": 1,
1794 | "strokeStyle": "solid",
1795 | "roughness": 0,
1796 | "opacity": 100,
1797 | "angle": 0,
1798 | "x": 684.1033325195312,
1799 | "y": 665.282358805339,
1800 | "strokeColor": "transparent",
1801 | "backgroundColor": "transparent",
1802 | "width": 74.59948730468658,
1803 | "height": 99.46598307291545,
1804 | "seed": 112621554,
1805 | "groupIds": [
1806 | "U1CIN4R1UPzhGcIVsU4Ho",
1807 | "7svwLlRUR07-vD_nonUWr"
1808 | ],
1809 | "strokeSharpness": "sharp",
1810 | "boundElementIds": []
1811 | },
1812 | {
1813 | "type": "text",
1814 | "version": 428,
1815 | "versionNonce": 1637745586,
1816 | "isDeleted": false,
1817 | "id": "JT4R1sF-NTE25lheOWJuj",
1818 | "fillStyle": "solid",
1819 | "strokeWidth": 1,
1820 | "strokeStyle": "solid",
1821 | "roughness": 1,
1822 | "opacity": 100,
1823 | "angle": 0,
1824 | "x": 693.454345703125,
1825 | "y": 669.9914957682296,
1826 | "strokeColor": "#000000",
1827 | "backgroundColor": "#228be6",
1828 | "width": 57,
1829 | "height": 40,
1830 | "seed": 1073920046,
1831 | "groupIds": [
1832 | "7svwLlRUR07-vD_nonUWr"
1833 | ],
1834 | "strokeSharpness": "sharp",
1835 | "boundElementIds": [],
1836 | "fontSize": 16,
1837 | "fontFamily": 1,
1838 | "text": "TODO\nIngress",
1839 | "baseline": 34,
1840 | "textAlign": "left",
1841 | "verticalAlign": "top"
1842 | },
1843 | {
1844 | "type": "text",
1845 | "version": 378,
1846 | "versionNonce": 1720556210,
1847 | "isDeleted": false,
1848 | "id": "TcrjRfPZBH2TL0vT9z15Z",
1849 | "fillStyle": "solid",
1850 | "strokeWidth": 1,
1851 | "strokeStyle": "solid",
1852 | "roughness": 1,
1853 | "opacity": 100,
1854 | "angle": 0,
1855 | "x": 692.3287963867188,
1856 | "y": 744.5495096842452,
1857 | "strokeColor": "#000000",
1858 | "backgroundColor": "#228be6",
1859 | "width": 11,
1860 | "height": 20,
1861 | "seed": 1086761394,
1862 | "groupIds": [
1863 | "7svwLlRUR07-vD_nonUWr"
1864 | ],
1865 | "strokeSharpness": "sharp",
1866 | "boundElementIds": [],
1867 | "fontSize": 16,
1868 | "fontFamily": 1,
1869 | "text": "3",
1870 | "baseline": 14,
1871 | "textAlign": "left",
1872 | "verticalAlign": "top"
1873 | },
1874 | {
1875 | "type": "line",
1876 | "version": 670,
1877 | "versionNonce": 454972338,
1878 | "isDeleted": false,
1879 | "id": "98D7NqpC9ThE6aLRDA9NO",
1880 | "fillStyle": "solid",
1881 | "strokeWidth": 1,
1882 | "strokeStyle": "solid",
1883 | "roughness": 0,
1884 | "opacity": 100,
1885 | "angle": 0,
1886 | "x": 880.2944946289062,
1887 | "y": 231.4484049479173,
1888 | "strokeColor": "#000000",
1889 | "backgroundColor": "#fff",
1890 | "width": 74.59948730468658,
1891 | "height": 99.46598307291545,
1892 | "seed": 717865902,
1893 | "groupIds": [
1894 | "9t0qwOvoywUbzveW9EHUY",
1895 | "qOr6ToqUA84e9G5I6DA13",
1896 | "h3x0hHtP6lMFWp7103C1j"
1897 | ],
1898 | "strokeSharpness": "sharp",
1899 | "boundElementIds": [],
1900 | "startBinding": null,
1901 | "endBinding": null,
1902 | "lastCommittedPoint": null,
1903 | "startArrowhead": null,
1904 | "endArrowhead": null,
1905 | "points": [
1906 | [
1907 | 0,
1908 | 0
1909 | ],
1910 | [
1911 | 49.732991536457696,
1912 | 0
1913 | ],
1914 | [
1915 | 74.59948730468658,
1916 | 24.866495768228862
1917 | ],
1918 | [
1919 | 74.59948730468658,
1920 | 99.46598307291545
1921 | ],
1922 | [
1923 | 0,
1924 | 99.46598307291545
1925 | ],
1926 | [
1927 | 0,
1928 | 0
1929 | ]
1930 | ]
1931 | },
1932 | {
1933 | "type": "line",
1934 | "version": 481,
1935 | "versionNonce": 1722603122,
1936 | "isDeleted": false,
1937 | "id": "5dNPXe1IyIst0EDZmUa6-",
1938 | "fillStyle": "solid",
1939 | "strokeWidth": 1,
1940 | "strokeStyle": "solid",
1941 | "roughness": 0,
1942 | "opacity": 100,
1943 | "angle": 0,
1944 | "x": 930.2506917317712,
1945 | "y": 231.4484049479173,
1946 | "strokeColor": "#000000",
1947 | "backgroundColor": "#fff",
1948 | "width": 0,
1949 | "height": 24.866495768228862,
1950 | "seed": 308811314,
1951 | "groupIds": [
1952 | "9t0qwOvoywUbzveW9EHUY",
1953 | "qOr6ToqUA84e9G5I6DA13",
1954 | "h3x0hHtP6lMFWp7103C1j"
1955 | ],
1956 | "strokeSharpness": "sharp",
1957 | "boundElementIds": [],
1958 | "startBinding": null,
1959 | "endBinding": null,
1960 | "lastCommittedPoint": null,
1961 | "startArrowhead": null,
1962 | "endArrowhead": null,
1963 | "points": [
1964 | [
1965 | 0,
1966 | 0
1967 | ],
1968 | [
1969 | 0,
1970 | 24.866495768228862
1971 | ]
1972 | ]
1973 | },
1974 | {
1975 | "type": "line",
1976 | "version": 479,
1977 | "versionNonce": 1208451502,
1978 | "isDeleted": false,
1979 | "id": "blX2KRsdh3LsskkRW8U8b",
1980 | "fillStyle": "solid",
1981 | "strokeWidth": 1,
1982 | "strokeStyle": "solid",
1983 | "roughness": 0,
1984 | "opacity": 100,
1985 | "angle": 0,
1986 | "x": 930.2506917317712,
1987 | "y": 256.31490071614667,
1988 | "strokeColor": "#000000",
1989 | "backgroundColor": "#fff",
1990 | "width": 24.866495768228862,
1991 | "height": 0,
1992 | "seed": 946937326,
1993 | "groupIds": [
1994 | "9t0qwOvoywUbzveW9EHUY",
1995 | "qOr6ToqUA84e9G5I6DA13",
1996 | "h3x0hHtP6lMFWp7103C1j"
1997 | ],
1998 | "strokeSharpness": "sharp",
1999 | "boundElementIds": [],
2000 | "startBinding": null,
2001 | "endBinding": null,
2002 | "lastCommittedPoint": null,
2003 | "startArrowhead": null,
2004 | "endArrowhead": null,
2005 | "points": [
2006 | [
2007 | 0,
2008 | 0
2009 | ],
2010 | [
2011 | 24.866495768228862,
2012 | 0
2013 | ]
2014 | ]
2015 | },
2016 | {
2017 | "type": "rectangle",
2018 | "version": 373,
2019 | "versionNonce": 1064122418,
2020 | "isDeleted": false,
2021 | "id": "_ccALEHttbNmHpbMpqQNY",
2022 | "fillStyle": "hachure",
2023 | "strokeWidth": 1,
2024 | "strokeStyle": "solid",
2025 | "roughness": 0,
2026 | "opacity": 100,
2027 | "angle": 0,
2028 | "x": 880.5177001953125,
2029 | "y": 231.4484049479173,
2030 | "strokeColor": "transparent",
2031 | "backgroundColor": "transparent",
2032 | "width": 74.59948730468658,
2033 | "height": 99.46598307291545,
2034 | "seed": 422215666,
2035 | "groupIds": [
2036 | "qOr6ToqUA84e9G5I6DA13",
2037 | "h3x0hHtP6lMFWp7103C1j"
2038 | ],
2039 | "strokeSharpness": "sharp",
2040 | "boundElementIds": []
2041 | },
2042 | {
2043 | "type": "text",
2044 | "version": 194,
2045 | "versionNonce": 812516206,
2046 | "isDeleted": false,
2047 | "id": "sx4BUQ1E7RxPAlAkL_i-J",
2048 | "fillStyle": "solid",
2049 | "strokeWidth": 1,
2050 | "strokeStyle": "solid",
2051 | "roughness": 1,
2052 | "opacity": 100,
2053 | "angle": 0,
2054 | "x": 890.114013671875,
2055 | "y": 236.15754191080794,
2056 | "strokeColor": "#000000",
2057 | "backgroundColor": "#228be6",
2058 | "width": 49,
2059 | "height": 40,
2060 | "seed": 1152593966,
2061 | "groupIds": [
2062 | "h3x0hHtP6lMFWp7103C1j"
2063 | ],
2064 | "strokeSharpness": "sharp",
2065 | "boundElementIds": [],
2066 | "fontSize": 16,
2067 | "fontFamily": 1,
2068 | "text": "Add\nTODO",
2069 | "baseline": 34,
2070 | "textAlign": "left",
2071 | "verticalAlign": "top"
2072 | }
2073 | ],
2074 | "appState": {
2075 | "gridSize": null,
2076 | "viewBackgroundColor": "#ffffff"
2077 | }
2078 | }
--------------------------------------------------------------------------------
/content/modules/ROOT/assets/images/presyncpost.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/content/modules/ROOT/assets/images/presyncpost.png
--------------------------------------------------------------------------------
/content/modules/ROOT/assets/images/todo-app-screenshot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/content/modules/ROOT/assets/images/todo-app-screenshot.png
--------------------------------------------------------------------------------
/content/modules/ROOT/assets/images/todo-app.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/content/modules/ROOT/assets/images/todo-app.png
--------------------------------------------------------------------------------
/content/modules/ROOT/assets/images/todo-argocd.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/content/modules/ROOT/assets/images/todo-argocd.png
--------------------------------------------------------------------------------
/content/modules/ROOT/assets/images/todo-card.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/content/modules/ROOT/assets/images/todo-card.png
--------------------------------------------------------------------------------
/content/modules/ROOT/assets/images/two-apps.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/content/modules/ROOT/assets/images/two-apps.png
--------------------------------------------------------------------------------
/content/modules/ROOT/assets/images/yellowoutput.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/content/modules/ROOT/assets/images/yellowoutput.png
--------------------------------------------------------------------------------
/content/modules/ROOT/examples/bgd-app-helm-custom.yaml:
--------------------------------------------------------------------------------
1 | apiVersion: argoproj.io/v1alpha1
2 | kind: Application
3 | metadata:
4 | name: bgd-helm
5 | spec:
6 | destination:
7 | namespace: $USER-bgdh
8 | server: 'https://kubernetes.default.svc'
9 | source:
10 | path: content/modules/ROOT/examples/bgd-helm-chart
11 | repoURL: 'https://github.com/OpenShiftDemos/openshift-gitops-workshop'
12 | targetRevision: main
13 | helm:
14 | valueFiles:
15 | - custom_values_1/values.yaml
16 | sources: []
17 | project: default
18 | syncPolicy:
19 | automated:
20 | prune: true
21 | selfHeal: true
22 |
--------------------------------------------------------------------------------
/content/modules/ROOT/examples/bgd-app-helm-para.yaml:
--------------------------------------------------------------------------------
1 | apiVersion: argoproj.io/v1alpha1
2 | kind: Application
3 | metadata:
4 | name: bgd-helm
5 | spec:
6 | destination:
7 | namespace: $USER-bgdh
8 | server: 'https://kubernetes.default.svc'
9 | source:
10 | path: content/modules/ROOT/examples/bgd-helm-chart
11 | repoURL: 'https://github.com/OpenShiftDemos/openshift-gitops-workshop'
12 | targetRevision: main
13 | helm:
14 | parameters:
15 | - name: color
16 | value: purple
17 | - name: image.name
18 | value: quay.io/rhdevelopers/bgd
19 | - name: image.pullPolicy
20 | value: IfNotPresent
21 | - name: image.tag
22 | value: 1.0.0
23 | - name: replicas
24 | value: '1'
25 | sources: []
26 | project: default
27 | syncPolicy:
28 | automated:
29 | prune: true
30 | selfHeal: true
31 |
--------------------------------------------------------------------------------
/content/modules/ROOT/examples/bgd-app-helm.yaml:
--------------------------------------------------------------------------------
1 | apiVersion: argoproj.io/v1alpha1
2 | kind: Application
3 | metadata:
4 | name: bgd-helm
5 | spec:
6 | destination:
7 | namespace: $USER-bgdh
8 | server: 'https://kubernetes.default.svc'
9 | source:
10 | path: content/modules/ROOT/examples/bgd-helm-chart
11 | repoURL: 'https://github.com/OpenShiftDemos/openshift-gitops-workshop'
12 | targetRevision: main
13 | sources: []
14 | project: default
15 | syncPolicy:
16 | automated:
17 | prune: true
18 | selfHeal: true
19 |
--------------------------------------------------------------------------------
/content/modules/ROOT/examples/bgd-app.yaml:
--------------------------------------------------------------------------------
1 | apiVersion: argoproj.io/v1alpha1
2 | kind: Application
3 | metadata:
4 | name: bgd-app
5 | spec:
6 | destination:
7 | namespace: $USER-bgd
8 | server: https://kubernetes.default.svc
9 | project: default
10 | source:
11 | path: content/modules/ROOT/examples/bgd
12 | repoURL: https://github.com/openshiftdemos/openshift-gitops-workshop
13 | targetRevision: main
14 | syncPolicy:
15 | automated:
16 | prune: true
17 | selfHeal: false
18 |
--------------------------------------------------------------------------------
/content/modules/ROOT/examples/bgd-base/bgd-deployment.yaml:
--------------------------------------------------------------------------------
1 | ---
2 | apiVersion: apps/v1
3 | kind: Deployment
4 | metadata:
5 | labels:
6 | app: bgd
7 | name: bgd
8 | spec:
9 | replicas: 1
10 | selector:
11 | matchLabels:
12 | app: bgd
13 | strategy: {}
14 | template:
15 | metadata:
16 | creationTimestamp: null
17 | labels:
18 | app: bgd
19 | spec:
20 | containers:
21 | - image: quay.io/rhdevelopers/bgd:1.0.0
22 | name: bgd
23 | env:
24 | - name: COLOR
25 | value: "blue"
26 | resources: {}
27 | ---
28 |
--------------------------------------------------------------------------------
/content/modules/ROOT/examples/bgd-base/bgd-route.yaml:
--------------------------------------------------------------------------------
1 | apiVersion: route.openshift.io/v1
2 | kind: Route
3 | metadata:
4 | labels:
5 | app: bgd
6 | name: bgd
7 | spec:
8 | port:
9 | targetPort: 8080
10 | to:
11 | kind: Service
12 | name: bgd
13 | weight: 100
14 |
--------------------------------------------------------------------------------
/content/modules/ROOT/examples/bgd-base/bgd-svc.yaml:
--------------------------------------------------------------------------------
1 | ---
2 | apiVersion: v1
3 | kind: Service
4 | metadata:
5 | labels:
6 | app: bgd
7 | name: bgd
8 | spec:
9 | ports:
10 | - port: 8080
11 | protocol: TCP
12 | targetPort: 8080
13 | selector:
14 | app: bgd
15 | ---
16 |
--------------------------------------------------------------------------------
/content/modules/ROOT/examples/bgd-base/kustomization.yaml:
--------------------------------------------------------------------------------
1 | apiVersion: kustomize.config.k8s.io/v1beta1
2 | kind: Kustomization
3 | resources:
4 | - bgd-deployment.yaml
5 | - bgd-route.yaml
6 | - bgd-svc.yaml
7 |
--------------------------------------------------------------------------------
/content/modules/ROOT/examples/bgd-helm-chart/Chart.yaml:
--------------------------------------------------------------------------------
1 | apiVersion: v2
2 | name: bgd
3 | description: Blue-Green
4 |
5 | type: application
6 |
7 | version: 1.0.0
8 | appVersion: 1.16.0
--------------------------------------------------------------------------------
/content/modules/ROOT/examples/bgd-helm-chart/custom_values_1/values.yaml:
--------------------------------------------------------------------------------
1 | replicas: 1
2 | color: green
3 |
4 | image:
5 | name: quay.io/rhdevelopers/bgd
6 | tag: "1.0.0"
7 | pullPolicy: IfNotPresent
8 |
--------------------------------------------------------------------------------
/content/modules/ROOT/examples/bgd-helm-chart/templates/deployment.yaml:
--------------------------------------------------------------------------------
1 | apiVersion: apps/v1
2 | kind: Deployment
3 | metadata:
4 | labels:
5 | app: {{ .Release.Name }}
6 | name: {{ .Release.Name }}
7 | spec:
8 | replicas: {{ .Values.replicas }}
9 | selector:
10 | matchLabels:
11 | app: {{ .Release.Name }}
12 | strategy: {}
13 | template:
14 | metadata:
15 | labels:
16 | app: {{ .Release.Name }}
17 | spec:
18 | containers:
19 | - image: {{ .Values.image.name }}:{{ .Values.image.tag }}
20 | imagePullPolicy: {{ .Values.image.pullPolicy }}
21 | name: {{ .Chart.Name }}
22 | env:
23 | - name: COLOR
24 | value: {{ .Values.color }}
25 | resources: {}
26 | securityContext:
27 | allowPrivilegeEscalation: false
28 | capabilities:
29 | drop:
30 | - ALL
31 | securityContext:
32 | runAsNonRoot: true
33 | seccompProfile:
34 | type: RuntimeDefault
--------------------------------------------------------------------------------
/content/modules/ROOT/examples/bgd-helm-chart/templates/route.yaml:
--------------------------------------------------------------------------------
1 | apiVersion: route.openshift.io/v1
2 | kind: Route
3 | metadata:
4 | labels:
5 | app: {{ .Release.Name }}
6 | name: {{ .Release.Name }}
7 | spec:
8 | port:
9 | targetPort: 8080
10 | to:
11 | kind: Service
12 | name: {{ .Release.Name }}
13 | weight: 100
14 |
--------------------------------------------------------------------------------
/content/modules/ROOT/examples/bgd-helm-chart/templates/svc.yaml:
--------------------------------------------------------------------------------
1 | apiVersion: v1
2 | kind: Service
3 | metadata:
4 | labels:
5 | app: {{ .Release.Name }}
6 | name: {{ .Release.Name }}
7 | spec:
8 | ports:
9 | - port: 8080
10 | protocol: TCP
11 | targetPort: 8080
12 | selector:
13 | app: {{ .Release.Name }}
14 |
--------------------------------------------------------------------------------
/content/modules/ROOT/examples/bgd-helm-chart/values.yaml:
--------------------------------------------------------------------------------
1 | replicas: 1
2 | color: yellow
3 |
4 | image:
5 | name: quay.io/rhdevelopers/bgd
6 | tag: "1.0.0"
7 | pullPolicy: IfNotPresent
8 |
--------------------------------------------------------------------------------
/content/modules/ROOT/examples/bgd/bgd-deployment.yaml:
--------------------------------------------------------------------------------
1 | ---
2 | apiVersion: apps/v1
3 | kind: Deployment
4 | metadata:
5 | labels:
6 | app: bgd
7 | name: bgd
8 | spec:
9 | replicas: 1
10 | selector:
11 | matchLabels:
12 | app: bgd
13 | strategy: {}
14 | template:
15 | metadata:
16 | labels:
17 | app: bgd
18 | spec:
19 | containers:
20 | - image: quay.io/rhdevelopers/bgd:1.0.0
21 | name: bgd
22 | env:
23 | - name: COLOR
24 | value: "blue"
25 | resources: {}
26 | securityContext:
27 | allowPrivilegeEscalation: false
28 | capabilities:
29 | drop:
30 | - ALL
31 | securityContext:
32 | runAsNonRoot: true
33 | seccompProfile:
34 | type: RuntimeDefault
35 | ---
36 |
--------------------------------------------------------------------------------
/content/modules/ROOT/examples/bgd/bgd-route.yaml:
--------------------------------------------------------------------------------
1 | apiVersion: route.openshift.io/v1
2 | kind: Route
3 | metadata:
4 | labels:
5 | app: bgd
6 | name: bgd
7 | spec:
8 | port:
9 | targetPort: 8080
10 | to:
11 | kind: Service
12 | name: bgd
13 | weight: 100
14 |
--------------------------------------------------------------------------------
/content/modules/ROOT/examples/bgd/bgd-svc.yaml:
--------------------------------------------------------------------------------
1 | ---
2 | apiVersion: v1
3 | kind: Service
4 | metadata:
5 | labels:
6 | app: bgd
7 | name: bgd
8 | spec:
9 | ports:
10 | - port: 8080
11 | protocol: TCP
12 | targetPort: 8080
13 | selector:
14 | app: bgd
15 | ---
16 |
--------------------------------------------------------------------------------
/content/modules/ROOT/examples/bgdk-app.yaml:
--------------------------------------------------------------------------------
1 | apiVersion: argoproj.io/v1alpha1
2 | kind: Application
3 | metadata:
4 | name: bgdk-app
5 | spec:
6 | destination:
7 | namespace: $USER-bgdk
8 | server: https://kubernetes.default.svc
9 | project: default
10 | source:
11 | path: content/modules/ROOT/examples/bgdk
12 | repoURL: https://github.com/openshiftdemos/openshift-gitops-workshop
13 | targetRevision: main
14 | syncPolicy:
15 | automated:
16 | prune: true
17 | selfHeal: false
18 |
--------------------------------------------------------------------------------
/content/modules/ROOT/examples/bgdk/kustomization.yaml:
--------------------------------------------------------------------------------
1 | apiVersion: kustomize.config.k8s.io/v1beta1
2 | kind: Kustomization
3 | resources:
4 | - ../bgd-base
5 | patches:
6 | - patch: |-
7 | - op: replace
8 | path: /spec/template/spec/containers/0/env/0/value
9 | value: yellow
10 | target:
11 | group: apps
12 | kind: Deployment
13 | name: bgd
14 | version: v1
15 |
--------------------------------------------------------------------------------
/content/modules/ROOT/examples/kustomize-build/kustomization.yaml:
--------------------------------------------------------------------------------
1 | apiVersion: kustomize.config.k8s.io/v1beta1
2 | kind: Kustomization
3 | resources:
4 | - ./welcome.yaml
5 | patches:
6 | - patch: |-
7 | - op: add
8 | path: /metadata/labels/testkey
9 | value: testvalue
10 | target:
11 | group: apps
12 | kind: Deployment
13 | name: welcome-php
14 | version: v1
15 |
--------------------------------------------------------------------------------
/content/modules/ROOT/examples/kustomize-build/welcome.yaml:
--------------------------------------------------------------------------------
1 | apiVersion: apps/v1
2 | kind: Deployment
3 | metadata:
4 | labels:
5 | app: welcome-php
6 | name: welcome-php
7 | spec:
8 | replicas: 1
9 | selector:
10 | matchLabels:
11 | app: welcome-php
12 | strategy: {}
13 | template:
14 | metadata:
15 | labels:
16 | app: welcome-php
17 | spec:
18 | containers:
19 | - image: quay.io/redhatworkshops/welcome-php:latest
20 | name: welcome-php
21 | resources: {}
22 | securityContext:
23 | allowPrivilegeEscalation: false
24 | capabilities:
25 | drop:
26 | - ALL
27 | securityContext:
28 | runAsNonRoot: true
29 | seccompProfile:
30 | type: RuntimeDefault
31 |
--------------------------------------------------------------------------------
/content/modules/ROOT/examples/todo-application.yaml:
--------------------------------------------------------------------------------
1 | apiVersion: argoproj.io/v1alpha1
2 | kind: Application
3 | metadata:
4 | name: todo-app
5 | spec:
6 | destination:
7 | namespace: $USER-todo
8 | server: https://kubernetes.default.svc
9 | project: default
10 | source:
11 | path: content/modules/ROOT/examples/todo
12 | repoURL: https://github.com/openshiftdemos/openshift-gitops-workshop
13 | targetRevision: main
14 | syncPolicy:
15 | automated:
16 | prune: true
17 | selfHeal: false
18 |
--------------------------------------------------------------------------------
/content/modules/ROOT/examples/todo/postgres-create-table.yaml:
--------------------------------------------------------------------------------
1 | apiVersion: batch/v1
2 | kind: Job
3 | metadata:
4 | name: todo-table
5 | annotations:
6 | argocd.argoproj.io/sync-wave: "1"
7 | spec:
8 | template:
9 | spec:
10 | containers:
11 | - name: postgresql-client
12 | image: postgres:12
13 | imagePullPolicy: Always
14 | env:
15 | - name: PGPASSWORD
16 | value: admin
17 | command: ["psql"]
18 | args:
19 | [
20 | "--host=postgresql",
21 | "--username=admin",
22 | "--no-password",
23 | "--dbname=todo",
24 | "--command=create table Todo (id bigint not null,completed boolean not null,ordering integer,title varchar(255),url varchar(255),primary key (id));create sequence hibernate_sequence start with 1 increment by 1;",
25 | ]
26 | restartPolicy: Never
27 | backoffLimit: 1
--------------------------------------------------------------------------------
/content/modules/ROOT/examples/todo/postgres-deployment.yaml:
--------------------------------------------------------------------------------
1 | ---
2 | apiVersion: apps/v1
3 | kind: Deployment
4 | metadata:
5 | name: postgresql
6 | annotations:
7 | argocd.argoproj.io/sync-wave: "0"
8 | spec:
9 | selector:
10 | matchLabels:
11 | app: postgresql
12 | template:
13 | metadata:
14 | labels:
15 | app: postgresql
16 | spec:
17 | containers:
18 | - name: postgresql
19 | image: quay.io/redhatdemo/openshift-pgsql12-primary:centos7
20 | imagePullPolicy: Always
21 | ports:
22 | - name: tcp
23 | containerPort: 5432
24 | env:
25 | - name: PG_USER_PASSWORD
26 | value: admin
27 | - name: PG_USER_NAME
28 | value: admin
29 | - name: PG_DATABASE
30 | value: todo
31 | - name: PG_NETWORK_MASK
32 | value: all
33 |
34 |
--------------------------------------------------------------------------------
/content/modules/ROOT/examples/todo/postgres-service.yaml:
--------------------------------------------------------------------------------
1 | ---
2 | apiVersion: v1
3 | kind: Service
4 | metadata:
5 | name: postgresql
6 | annotations:
7 | argocd.argoproj.io/sync-wave: "0"
8 | spec:
9 | selector:
10 | app: postgresql
11 | ports:
12 | - name: pgsql
13 | port: 5432
14 | targetPort: 5432
--------------------------------------------------------------------------------
/content/modules/ROOT/examples/todo/todo-deployment.yaml:
--------------------------------------------------------------------------------
1 | ---
2 | apiVersion: "v1"
3 | kind: "ServiceAccount"
4 | metadata:
5 | labels:
6 | app.kubernetes.io/name: "todo-gitops"
7 | app.kubernetes.io/version: "1.0.0"
8 | name: "todo-gitops"
9 | annotations:
10 | argocd.argoproj.io/sync-wave: "2"
11 | ---
12 | apiVersion: "apps/v1"
13 | kind: "Deployment"
14 | metadata:
15 | labels:
16 | app.kubernetes.io/name: "todo-gitops"
17 | app.kubernetes.io/version: "1.0.0"
18 | name: "todo-gitops"
19 | annotations:
20 | argocd.argoproj.io/sync-wave: "2"
21 | spec:
22 | replicas: 1
23 | selector:
24 | matchLabels:
25 | app.kubernetes.io/name: "todo-gitops"
26 | app.kubernetes.io/version: "1.0.0"
27 | template:
28 | metadata:
29 | labels:
30 | app.kubernetes.io/name: "todo-gitops"
31 | app.kubernetes.io/version: "1.0.0"
32 | spec:
33 | containers:
34 | - env:
35 | - name: "KUBERNETES_NAMESPACE"
36 | valueFrom:
37 | fieldRef:
38 | fieldPath: "metadata.namespace"
39 | image: "quay.io/rhdevelopers/todo-gitops:1.0.0"
40 | imagePullPolicy: "Always"
41 | name: "todo-gitops"
42 | ports:
43 | - containerPort: 8080
44 | name: "http"
45 | protocol: "TCP"
46 | serviceAccount: "todo-gitops"
--------------------------------------------------------------------------------
/content/modules/ROOT/examples/todo/todo-insert-data.yaml:
--------------------------------------------------------------------------------
1 | apiVersion: batch/v1
2 | kind: Job
3 | metadata:
4 | name: todo-insert
5 | annotations:
6 | argocd.argoproj.io/hook: PostSync # <1>
7 | argocd.argoproj.io/hook-delete-policy: HookSucceeded
8 | spec:
9 | template:
10 | spec:
11 | containers:
12 | - name: httpie
13 | image: alpine/httpie:2.4.0
14 | imagePullPolicy: Always
15 | command: ["http"]
16 | args:
17 | [
18 | "POST",
19 | "todo-gitops:8080/api",
20 | "title=Finish ArgoCD tutorial",
21 | "--ignore-stdin"
22 | ]
23 | restartPolicy: Never
24 | backoffLimit: 1
--------------------------------------------------------------------------------
/content/modules/ROOT/examples/todo/todo-route.yaml:
--------------------------------------------------------------------------------
1 | apiVersion: route.openshift.io/v1
2 | kind: Route
3 | metadata:
4 | labels:
5 | app: todo
6 | name: todo
7 | annotations:
8 | argocd.argoproj.io/sync-wave: "3"
9 | spec:
10 | port:
11 | targetPort: 8080
12 | to:
13 | kind: Service
14 | name: todo-gitops
15 | weight: 100
--------------------------------------------------------------------------------
/content/modules/ROOT/examples/todo/todo-service.yaml:
--------------------------------------------------------------------------------
1 | ---
2 | apiVersion: "v1"
3 | kind: "Service"
4 | metadata:
5 | labels:
6 | app.kubernetes.io/name: "todo-gitops"
7 | app.kubernetes.io/version: "1.0.0"
8 | name: "todo-gitops"
9 | annotations:
10 | argocd.argoproj.io/sync-wave: "2"
11 | spec:
12 | ports:
13 | - name: "http"
14 | port: 8080
15 | targetPort: 8080
16 | selector:
17 | app.kubernetes.io/name: "todo-gitops"
18 | app.kubernetes.io/version: "1.0.0"
--------------------------------------------------------------------------------
/content/modules/ROOT/nav.adoc:
--------------------------------------------------------------------------------
1 | * xref:01-getting-started.adoc[1. Getting Started]
2 | ** xref:01-getting-started.adoc#cluster-login[Cluster Login]
3 | ** xref:01-getting-started.adoc#open-web-terminal[Open the Web Terminal]
4 |
5 | * xref:02-gitops-basics.adoc[2. GitOps Basics]
6 | ** xref:02-gitops-basics.adoc#review-argocd[Review Argo CD Deployment]
7 | ** xref:02-gitops-basics.adoc#connect-argocd[Connecting to Argo CD]
8 | ** xref:02-gitops-basics.adoc#deploy-sample-application[Deploy a Sample Application]
9 |
10 | * xref:03-kustomize.adoc[3. Work with Kustomize]
11 | ** xref:03-kustomize.adoc#exploring_kustomize[Exploring the Kustomize]
12 | *** xref:03-kustomize.adoc#exploring_kustomize_cli[Exploring the Kustomize CLI]
13 | *** xref:03-kustomize.adoc#exploring_kustomize_with_oc[Exploring Kustomize with `oc`]
14 | ** xref:03-kustomize.adoc#deploying_kustomized_application[Deploying Kustomized Application]
15 | *** xref:03-kustomize.adoc#argocd_web_console[The ArgoCD Web Console]
16 | *** xref:03-kustomize.adoc#kustomized_application[Kustomized Application]
17 |
18 | * xref:04-helm.adoc[4. Work with Helm]
19 | ** xref:04-helm.adoc#exploring-helm[Exploring Helm]
20 | *** xref:04-helm.adoc#exploring-helm-cli[Exploring the Helm CLI]
21 | ** xref:04-helm.adoc#exploring-helm-charts[Exploring Helm Charts]
22 | *** xref:04-helm.adoc#helm-template[Helm Template]
23 | ** xref:04-helm.adoc#helm-charts-deploy-applications[Helm Chart Deployment in Argo CD]
24 | *** xref:04-helm.adoc#custom-values-files[Custom Values Files]
25 | *** xref:04-helm.adoc#parameter_values[Parameter Values]
26 | ** xref:04-helm.adoc#helm-conclusion[Conclusion: Helm on ArgoCD]
27 |
28 |
29 |
30 | * xref:05-syncwaves-hooks.adoc[5. Sync Waves and Hooks]
31 | ** xref:05-syncwaves-hooks.adoc#using_syncwaves[Using Sync Waves]
32 | *** xref:05-syncwaves-hooks.adoc#exploring_the_manifests_waves[Exploring Sync Wave Manifests]
33 | ** xref:05-syncwaves-hooks.adoc#using_resource_hooks[Using Resource Hooks]
34 | *** xref:05-syncwaves-hooks.adoc#exploring_the_manifests_hooks[Exploring Resource Hook Manifests]
35 | ** xref:05-syncwaves-hooks.adoc#deploying_the_application[Deploying the Application]
36 |
37 | * xref:06-conclusion.adoc[6. Conclusion]
38 | ** xref:06-conclusion.adoc#Resources[Resources]
39 |
--------------------------------------------------------------------------------
/content/modules/ROOT/pages/01-getting-started.adoc:
--------------------------------------------------------------------------------
1 | = Getting Started
2 | include::_attributes.adoc[]
3 |
4 | [#cluster-login]
5 | == OpenShift cluster login
6 |
7 | == OpenShift Cluster Login
8 |
9 | The first thing to do is log in to your OpenShift cluster with the following
10 | information:
11 |
12 | *OpenShift Console*
13 | link:{console_url}[{console_url},window='_blank']
14 |
15 | *Username*
16 |
17 | [.console-input]
18 | [source,bash,subs="attributes+,+macros"]
19 | ----
20 | {user}
21 | ----
22 |
23 | *Password*
24 |
25 | [.console-input]
26 | [source,bash,subs="attributes+,+macros"]
27 | ----
28 | {password}
29 | ----
30 |
31 | Clicking the link above for the OpenShift Console will take you to the OpenShift
32 | login screen where you can login using the provided username and password.
33 |
34 | image::openshift-login.png[]
35 |
36 | Once logged in, make sure that you choose the _Developer_ perspective using the
37 | switcher in the upper-left:
38 |
39 | image::openshift-perspective-switcher.png[]
40 |
41 | [#open-web-terminal]
42 | == Workshop Web Terminal
43 |
44 | On the right side of your screen is a web terminal which includes many of the
45 | necessary command-line tools you need to interact with. By default the terminal
46 | is logged in with a service account with limited permissions, execute the following
47 | command to login as {user}.
48 |
49 | [.console-input]
50 | [source,bash,subs="attributes+,+macros"]
51 | ----
52 | {login_command}
53 | ----
54 |
55 | When you login you will see a prompt about using an insecure connection as the Kubernetes API
56 | in this workshop is using a default certificate, type `y` to accept and the login will continue.
57 |
58 | *Once completed you should see the following in the terminal:*
59 |
60 | [.console-output]
61 | [source,bash,subs="attributes+,+macros"]
62 | ----
63 | [lab-user: ~]$ {login_command}
64 | The server uses a certificate signed by an unknown authority.
65 | You can bypass the certificate check, but any data you send to the server could be intercepted by others.
66 | Use insecure connections? (y/n): y
67 |
68 | WARNING: Using insecure TLS client config. Setting this option is not supported!
69 |
70 | Login successful.
71 |
72 | You have access to the following projects and can switch between them with 'oc project ':
73 |
74 | * {user}-argocd
75 | {user}-bgd
76 | {user}-bgdh
77 | {user}-bgdk
78 | {user}-todo
79 |
80 | Using project "user1-argocd".
81 | Welcome! See 'oc help' to get started.
82 | ----
83 |
84 | [TIP]
85 | ====
86 | In order to copy and paste content into the terminal, you can use
87 | the secondary (typically right click) menus to do so. You can also
88 | use the keyboard to paste content with the shortcut <ctrl><shift><v>.
89 | ====
90 |
--------------------------------------------------------------------------------
/content/modules/ROOT/pages/02-gitops-basics.adoc:
--------------------------------------------------------------------------------
1 | = Getting Started
2 | include::_attributes.adoc[]
3 | :profile: gitops
4 |
5 | An Argo CD instance dedicated for you has been deployed into the OpenShift
6 | Project `{user}-argocd`. This is one of the benefits of the
7 | Operator-based mechanism that OpenShift uses: it's easy for users to deploy
8 | software and solutions.
9 |
10 | [#review-argocd]
11 | == Review the Argo CD Deployment
12 |
13 | In the OpenShift web console, with the _Developer_ perspective active, click the
14 | _Topology_ link in the left navigation and make sure that the
15 | `{user}-argocd` Project is selected at the top. You will see the Argo CD
16 | deployment in the topology view:
17 |
18 | image::argocd-topology.png[]
19 |
20 |
21 | [#connect-argocd]
22 | == Connecting to Argo CD
23 |
24 | While Argo CD generates a default `admin` user and a random password when first
25 | deployed you can also configure Argo CD to use the OpenShift authentication.
26 | You can connect to Argo CD using this user account via the CLI or web
27 | console. In this workshop, we will only use the Argo CD web console.
28 |
29 | There are a few ways to find the URL for your Argo CD instance. In the _Topology_ view of your Project, any Routes/Ingresses associated with
30 | services will have a little pop-out icon:
31 |
32 | image::argocd-topology-link.png[]
33 |
34 | You can find all of the Routes by clicking the _Project_ link on the left, and
35 | then clicking _Route_ on the subsequent page.
36 |
37 | Also, you can get the Argo CD Route using the `oc` CLI:
38 |
39 | [.console-input]
40 | [source,bash,subs="attributes+,+macros"]
41 | ----
42 | oc get route -n {user}-argocd {user}-argo-server -o jsonpath='{.spec.host}{"\n"}'
43 | ----
44 |
45 | However you decide to access the Argo CD console, log in with the same username
46 | and password that you used to login in with OpenShift.
47 |
48 | image::argo-cd-login.png[ArgoCDLogin, 600]
49 |
50 | After you enter your credentials you will see the following prompting you to authorize access,
51 | click the "Allow selected permissions" button.
52 |
53 | image::argo-cd-allow-access.png[ArgoCDAuthorize, 600]
54 |
55 | Once you've logged in, you should see the following page. This is the Argo CD
56 | Web UI.
57 |
58 | image::argocd-login2.png[ArgoCDLogin2, 600]
59 |
60 | [#deploy-sample-application]
61 | == Deploy a Sample Application
62 |
63 | As GitOps implies some relationship to Git, we will need to get manifests from a
64 | repository somewhere. You will be using the repository that contains this
65 | workshop and its documentation as the source of the manifests that define the
66 | application state:
67 |
68 | https://github.com/OpenShiftDemos/openshift-gitops-workshop[https://github.com/OpenShiftDemos/openshift-gitops-workshop,window="_blank']
69 |
70 | === Clone the Repository
71 |
72 | You need to clone the repository into your web terminal because you will need to
73 | make very small changes to some of the files for the examples:
74 |
75 | [.console-input]
76 | [source,bash,subs="attributes+,+macros"]
77 | ----
78 | git clone -b {gitops_revision} --single-branch https://github.com/OpenShiftDemos/openshift-gitops-workshop ~/openshift-gitops-workshop
79 | ----
80 |
81 | All of the example content will be located in:
82 |
83 | `~/openshift-gitops-workshop/content/modules/ROOT/examples`
84 |
85 | === Review the Application Manifests
86 |
87 | For this first lab, the application manifests are located link:https://github.com/OpenShiftDemos/openshift-gitops-workshop/blob/master/content/modules/ROOT/examples/bgd[here,window='_blank'] and include a Deployment, Service, and Route.
88 | We will review these in your terminal, to simplify viewing the files change the path:
89 |
90 |
91 | [.console-input]
92 | [source,bash,subs="attributes+,+macros"]
93 | ----
94 | cd ~/openshift-gitops-workshop/content/modules/ROOT/examples
95 | ----
96 |
97 |
98 | [IMPORTANT]
99 | ====
100 | Review, but do not apply these manifests to your cluster. You will do that
101 | shortly using Argo CD.
102 | ====
103 |
104 | A *Deployment*:
105 |
106 | [.console-input]
107 | [source,bash,subs="attributes+,+macros"]
108 | ----
109 | cat ./bgd/bgd-deployment.yaml
110 | ----
111 |
112 | [source,yaml,subs="+macros,attributes+"]
113 | ----
114 | include::ROOT:example$bgd/bgd-deployment.yaml[]
115 | ----
116 |
117 | A *Service*:
118 |
119 | [.console-input]
120 | [source,bash,subs="attributes+,+macros"]
121 | ----
122 | cat ./bgd/bgd-svc.yaml
123 | ----
124 |
125 | [source,yaml,subs="+macros,attributes+"]
126 | ----
127 | include::ROOT:example$bgd/bgd-svc.yaml[]
128 | ----
129 |
130 | A *Route*:
131 |
132 | [.console-input]
133 | [source,bash,subs="attributes+,+macros"]
134 | ----
135 | cat ./bgd/bgd-route.yaml
136 | ----
137 |
138 | [source,yaml,subs="+macros,attributes+"]
139 | ----
140 | include::ROOT:example$bgd/bgd-route.yaml[]
141 | ----
142 |
143 | === Deploy the Application
144 |
145 | A managed collection of manifests is known as an `Application` within Argo CD.
146 | Therefore, you must define it as such using an
147 | link:https://argo-cd.readthedocs.io/en/stable/operator-manual/declarative-setup/#applications[Application
148 | CR (CustomResource)^] in order to have Argo CD apply these manifests in your
149 | cluster.
150 |
151 | Let's review the `Application` manifest used to deploy this application (found link:https://github.com/OpenShiftDemos/openshift-gitops-workshop/blob/{gitops_revision}/content/modules/ROOT/examples/bgd-app.yaml[here,window="_blank"])
152 | and break this down a bit:
153 |
154 | [.console-input]
155 | [source,bash,subs="attributes+,+macros"]
156 | ----
157 | cat ./bgd-app.yaml
158 | ----
159 |
160 | .link:https://github.com/OpenShiftDemos/openshift-gitops-workshop/blob/{gitops_revision}/content/modules/ROOT/examples/bgd-app.yaml[bgd-app.yaml,window="_blank"]
161 | [source,yaml,subs="+macros,attributes+"]
162 | ----
163 | apiVersion: argoproj.io/v1alpha1
164 | kind: Application
165 | metadata:
166 | name: bgd-app
167 | spec:
168 | destination:
169 | namespace: {user}-bgd
170 | server: https://kubernetes.default.svc <1>
171 | project: default <2>
172 | source: <3>
173 | path: documentation/modules/ROOT/examples/bgd
174 | repoURL: https://github.com/OpenShiftDemos/openshift-gitops-workshop
175 | targetRevision: main
176 | syncPolicy: <4>
177 | automated:
178 | prune: true
179 | selfHeal: false
180 | ----
181 | <1> The destination server is API endpoint for the cluster where Argo CD is
182 | running -- in this case, using the locally-resolveable URL for the cluster
183 | <2> Here you're installing the application in Argo CD's `default` project
184 | (`.spec.project`).
185 | [NOTE]
186 | Argo CD's concept of a `Project` is different than OpenShift's. Here you're
187 | installing the application in Argo CD's `default` project (`.spec.project`).
188 | *NOT* OpenShift's default project.
189 | <3> The manifest repo, and the path within it where the YAML resides.
190 | <4> The `syncPolicy` is set to `automated`. It will automatically prune
191 | resources that have been removed from the Git repo, but will not automatically
192 | correct resources that deviate from the definition stored in the repo, i.e
193 | manual changes made using `oc` or `kubectl` will not be "healed".
194 |
195 | You will create an Application by slightly modifying the provided example inline
196 | using the command below:
197 |
198 | [.console-input]
199 | [source,bash,subs="attributes+,+macros"]
200 | ----
201 | sed 's/$USER/{user}/' ~/openshift-gitops-workshop/content/modules/ROOT/examples/bgd-app.yaml | oc apply -n {user}-argocd -f -
202 | ----
203 |
204 | The newly created Application appears as a tile with the title `bgd-app` in the
205 | Argo CD UI.
206 |
207 | image::argocd-app1.png[SampleApp]
208 |
209 | Clicking on this tile takes you to the application details page. You may see it
210 | as still progressing or fully synced.
211 |
212 | image::argocd-app2.png[SampleApp]
213 |
214 | At this point the application should be up and running. Verify that the
215 | resources were created:
216 |
217 | [.console-input]
218 | [source,bash,subs="attributes+,+macros"]
219 | ----
220 | oc get all -n {user}-bgd
221 | ----
222 |
223 | The output should list several things:
224 |
225 | [.console-output]
226 | [source,bash,subs="attributes+,+macros"]
227 | ----
228 | NAME READY STATUS RESTARTS AGE
229 | pod/bgd-74cf584546-tlqdm 1/1 Running 0 12m
230 |
231 | NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
232 | service/bgd ClusterIP 172.30.124.158 8080/TCP 12m
233 |
234 | NAME READY UP-TO-DATE AVAILABLE AGE
235 | deployment.apps/bgd 1/1 1 1 12m
236 |
237 | NAME DESIRED CURRENT READY AGE
238 | replicaset.apps/bgd-74cf584546 1 1 1 12m
239 |
240 | NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD
241 | route.route.openshift.io/bgd bgd-{user}-bgd.apps.cluster-7pjzx.7pjzx.sandbox141.opentlc.com bgd 8080 None
242 | ----
243 |
244 |
245 | **Extra Credit:** Do you know why you have a ReplicaSet?
246 |
247 | Wait for the rollout of the new pods to happen in the deployment:
248 |
249 | [.console-input]
250 | [source,bash,subs="attributes+,+macros"]
251 | ----
252 | oc rollout status deploy/bgd -n {user}-bgd
253 | ----
254 |
255 | If it is successful, you can now visit the deployed application in the browser.
256 |
257 | From the OpenShift web console, select *{user}-bgd* Project from
258 | drop-down menu, and use the _Topology_ view to find the link as you did with
259 | the Argo CD console.
260 |
261 | image::bgdapp.png[BGD App]
262 |
263 | Alternatively, get the app Route from the CLI:
264 |
265 | [.console-input]
266 | [source,bash,subs="attributes+,+macros"]
267 | ----
268 | oc get route bgd -n {user}-bgd -o jsonpath='{"http://"}{.spec.host}{"\n"}'
269 | ----
270 |
271 | WARNING: This route is only available via HTTP. If you try to visit via HTTPS,
272 | you will get an _Application not available_ error. Do you know why that is?
273 |
274 | Your application should look like this.
275 |
276 | image::bgd.png[SampleApp]
277 |
278 | === Addressing Configuration Drift
279 |
280 | Let's introduce a change in the application environment! Patch the live
281 | Deployment manifest to change the color of the bubbles in the application from
282 | blue to green:
283 |
284 | [.console-input]
285 | [source,bash,subs="attributes+,+macros"]
286 |
287 | ----
288 | oc -n {user}-bgd patch deploy/bgd --type='json' -p='[{"op": "replace", "path": "/spec/template/spec/containers/0/env/0/value", "value":"green"}]'
289 | ----
290 |
291 | Wait for the rollout of the new pods to happen in the deployment:
292 |
293 | [.console-input]
294 | [source,bash,subs="attributes+,+macros"]
295 | ----
296 | oc rollout status deploy/bgd -n {user}-bgd
297 | ----
298 |
299 | Refresh the browser tab where your application is running. You should see green
300 | bubbles.
301 |
302 | image::bgd-green.png[BDG Green]
303 |
304 | Looking over at your Argo CD Web UI, you can see that Argo detects your
305 | application as "Out of Sync".
306 |
307 | image::out-of-sync.png[Out of Sync]
308 |
309 | You can sync your app via the Argo CD by:
310 |
311 | * First clicking `SYNC`
312 | * Then clicking `SYNCHRONIZE`
313 |
314 | After the sync process is done, the Argo CD UI should mark the application as in
315 | sync.
316 |
317 | image::fullysynced.png[Fully Synced]
318 |
319 | Reload the page on the tab where the application is running. The bubbles should
320 | have returned to their original blue color.
321 |
322 | image::bgd.png[BDG App]
323 |
324 | You can set up Argo CD to automatically correct drift by setting the `selfHeal`
325 | property of the `Application` manifest to do so. Using the example from link:#_deploy_the_application[above]:
326 |
327 | [.console-input]
328 | [source,yaml,subs="attributes+,+macros"]
329 | ----
330 | # bgd-app.yaml
331 | ...
332 | spec:
333 | syncPolicy:
334 | automated:
335 | prune: true
336 | selfHeal: true # Set this to true
337 | ----
338 |
339 | Or, as in our case, after the fact by running the following command:
340 |
341 | [.console-input]
342 | [source,bash,subs="attributes+,+macros"]
343 | ----
344 | oc patch application/bgd-app -n {user}-argocd --type=merge -p='{"spec":{"syncPolicy":{"automated":{"prune":true,"selfHeal":true}}}}'
345 | ----
346 |
--------------------------------------------------------------------------------
/content/modules/ROOT/pages/03-kustomize.adoc:
--------------------------------------------------------------------------------
1 | = Kustomize
2 | include::_attributes.adoc[]
3 |
4 | link:https://kustomize.io/[Kustomize] traverses a Kubernetes manifest to add,
5 | remove or update configuration options without forking. It is available both as
6 | a standalone binary and as a native feature of both `oc` and `kubectl`.
7 |
8 | [#exploring_kustomize]
9 | == Exploring Kustomize
10 |
11 | The principles of `kustomize` are:
12 |
13 | * Purely declarative approach to configuration customization
14 | * Manage an arbitrary number of distinctly customized Kubernetes configurations
15 | * Every artifact that kustomize uses is plain YAML and can be validated and
16 | processed as such
17 | * As a "templateless" templating system; it encourages using YAML without
18 | forking the repo it.
19 |
20 | image::kustomize_logo.png[Kustomize Logo]
21 |
22 | [#exploring_kustomize_cli]
23 | == Exploring the Kustomize CLI
24 |
25 | The `kustomize` CLI should have been installed as part of the lab
26 | setup. Verify that it has been installed.
27 |
28 | [.console-input]
29 | [source,bash,subs="attributes+,+macros"]
30 | ----
31 | kustomize version
32 | ----
33 |
34 | This should display the version, it should look something like this.
35 |
36 | [.console-output]
37 | [source,bash,subs="attributes+,+macros"]
38 | ----
39 | v5.1.0
40 | ----
41 |
42 | Kustomize, at its core, is meant to build on top of native Kubernetes manifests
43 | based on YAML while leaving the original YAML intact. It achieves this in a
44 | "template-less" templating format. This is done by providing a
45 | `kustomization.yaml` file.
46 |
47 | We will be focusing on two Kustomize sub-commands: the `build` command and the
48 | `edit` command.
49 |
50 | === Kustomize `build`
51 |
52 | The `build` command takes the YAML source (via a path or URL) and creates a new
53 | YAML that can be piped into `oc create`. We will work with an example in the
54 | `content/modules/ROOT/examples/kustomize-build` directory within the
55 | repository you cloned.
56 |
57 | [.console-input]
58 | [source,bash,subs="attributes+,+macros"]
59 | ----
60 | cd ~/openshift-gitops-workshop/content/modules/ROOT/examples/kustomize-build
61 | ----
62 |
63 | Here you should see two files, a `welcome.yaml` file and a `kustomization.yaml` file, let's have a look at them.
64 |
65 | [.console-input]
66 | [source,bash,subs="attributes+,+macros"]
67 | ----
68 | cat ./welcome.yaml
69 | ----
70 |
71 | .link:https://github.com/OpenShiftDemos/openshift-gitops-workshop/blob/{gitops_revision}/content/modules/ROOT/examples/kustomize-build/welcome.yaml[welcome.yaml,window='_blank']
72 | [source,yaml,subs="+macros,attributes+"]
73 | ----
74 | include::ROOT:example$kustomize-build/welcome.yaml[]
75 | ----
76 |
77 | This file shows nothing special. Just a standard Kubernetes `Deployment` manifest.
78 |
79 | Now what if, for example, we wanted to add a `label` to this manifest without
80 | editing it? This is where the `kustomization.yaml` file comes in.
81 |
82 | [.console-input]
83 | [source,bash,subs="attributes+,+macros"]
84 | ----
85 | cat ./kustomization.yaml
86 | ----
87 |
88 | .link:https://github.com/OpenShiftDemos/openshift-gitops-workshop/blob/{gitops_revision}/content/modules/ROOT/examples/kustomize-build/kustomization.yaml[kustomization.yaml,window='_blank']
89 | [source,yaml,subs="+macros,attributes+"]
90 | ----
91 | include::ROOT:example$kustomize-build/kustomization.yaml[]
92 | ----
93 |
94 | As you can see in the output, we only need a `resources` and a `patches` section to accomplish this:
95 |
96 | - The `resources` is an array of individual files, directories, and/or URLs where
97 | other manifests are stored. In this example we are just loading in one file.
98 | - The link:https://kubectl.docs.kubernetes.io/references/kustomize/kustomization/patches/[`patches`,window="blank"] is where we add our label to this manifest.
99 |
100 | [NOTE]
101 | ====
102 | You can read about what options are available for patching in the
103 | https://kubectl.docs.kubernetes.io/references/kustomize/kustomization/[official
104 | documentation site,window="blank"]
105 | ====
106 |
107 | Build this manifest by running:
108 |
109 | [.console-input]
110 | [source,bash,subs="attributes+,+macros"]
111 | ----
112 | kustomize build
113 | ----
114 |
115 | You can see that the new label got added to the manifest!
116 |
117 | [.console-output]
118 | [source,yaml,subs="attributes+,+macros"]
119 | ----
120 | apiVersion: apps/v1
121 | kind: Deployment
122 | metadata:
123 | labels:
124 | app: welcome-php
125 | testkey: testvalue # Our new label
126 | name: welcome-php
127 | spec:
128 | replicas: 1
129 | selector:
130 | matchLabels:
131 | app: welcome-php
132 | strategy: {}
133 | template:
134 | metadata:
135 | labels:
136 | app: welcome-php
137 | spec:
138 | containers:
139 | - image: quay.io/redhatworkshops/welcome-php:latest
140 | name: welcome-php
141 | resources: {}
142 | securityContext:
143 | allowPrivilegeEscalation: false
144 | capabilities:
145 | drop:
146 | - ALL
147 | securityContext:
148 | runAsNonRoot: true
149 | seccompProfile:
150 | type: RuntimeDefault
151 | ----
152 |
153 | === Kustomize `edit`
154 |
155 | You can use the `kustomize edit` command to make manifest changes instead of manually writing YAML. For
156 | example, you can change the image tag the `Deployment` above uses from `latest`
157 | to `ffcd15` by running the following:
158 |
159 | [.console-input]
160 | [source,bash,subs="attributes+,+macros"]
161 | ----
162 | kustomize edit set image quay.io/redhatworkshops/welcome-php:ffcd15
163 | ----
164 |
165 | This will update the `kustomization.yaml` file with an `images` section.
166 | [.console-input]
167 | [source,bash,subs="attributes+,+macros"]
168 | ----
169 | cat kustomization.yaml
170 | ----
171 |
172 | [.console-output]
173 | [source,yaml,subs="attributes+,+macros"]
174 | ----
175 | apiVersion: kustomize.config.k8s.io/v1beta1
176 | kind: Kustomization
177 | resources:
178 | - ./welcome.yaml
179 | patches:
180 | - patch: |-
181 | - op: add
182 | path: /metadata/labels/testkey
183 | value: testvalue
184 | target:
185 | group: apps
186 | kind: Deployment
187 | name: welcome-php
188 | version: v1
189 | images:
190 | - name: quay.io/redhatworkshops/welcome-php
191 | newTag: ffcd15
192 | ----
193 |
194 | Now when you run:
195 |
196 | [.console-input]
197 | [source,bash,subs="attributes+,+macros"]
198 | ----
199 | kustomize build .
200 | ----
201 |
202 | You should see not only the new label, but also the new `ffcd15` image tag!
203 | [.console-output]
204 | [source,yaml,subs="attributes+,+macros"]
205 | ----
206 | apiVersion: apps/v1
207 | kind: Deployment
208 | metadata:
209 | labels:
210 | app: welcome-php
211 | testkey: testvalue
212 | name: welcome-php
213 | spec:
214 | replicas: 1
215 | selector:
216 | matchLabels:
217 | app: welcome-php
218 | strategy: {}
219 | template:
220 | metadata:
221 | labels:
222 | app: welcome-php
223 | spec:
224 | containers:
225 | - image: quay.io/redhatworkshops/welcome-php:ffcd15
226 | name: welcome-php
227 | resources: {}
228 | securityContext:
229 | allowPrivilegeEscalation: false
230 | capabilities:
231 | drop:
232 | - ALL
233 | securityContext:
234 | runAsNonRoot: true
235 | seccompProfile:
236 | type: RuntimeDefault
237 | ----
238 |
239 | You can now see how you can take existing YAML and modify it for
240 | your specific environment without the need to copy or edit the original.
241 |
242 | [IMPORTANT]
243 | ====
244 | Kustomize can also be used to write a new YAML file and pipe it into
245 | the `oc` (or `kubectl`) command for immediate execution in your environment. Example:
246 |
247 | [source,bash,subs="attributes+,+macros"]
248 | ----
249 | kustomize build . | oc apply -f -
250 | ----
251 | ====
252 |
253 | [#exploring_kustomize_with_oc]
254 | == Exploring Kustomize with `oc`
255 |
256 | The OpenShift CLI (`oc`) has support for Kustomize built in.
257 | It inherits this from `kubectl` which has had this same support since Kubernetes 1.14.
258 |
259 | You can see this by running:
260 |
261 | [.console-input]
262 | [source,bash,subs="attributes+,+macros"]
263 | ----
264 | oc kustomize --help
265 | ----
266 |
267 | You can run the `kustomize build` command by doing:
268 |
269 | [.console-input]
270 | ----
271 | oc kustomize
272 | ----
273 |
274 | Although you can use `oc kustomize` and pipe it into the `oc apply` command, you
275 | don't have to. The `oc apply` command has the `-k` option that
276 | will run the build before it applies the manifest.
277 |
278 | [NOTE]
279 | ====
280 | `oc kustomize` and `kubectl kustomize` implement a subset of the `kustomize`
281 | featureset. For example, the `edit` command is not implemented.
282 | ====
283 |
284 | Now you will apply your `kustomize`-d `Deployment` manifest into one of your projects:
285 |
286 | [NOTE]
287 | ====
288 | Ensure that you are in the `~/openshift-gitops-workshop/content/modules/ROOT/examples/kustomize-build` directory
289 | ====
290 |
291 | [.console-input]
292 | [source,bash,subs="attributes+,+macros"]
293 | ----
294 | oc apply -n {user}-bgdk -k .
295 | ----
296 |
297 | You should see the following letting you know the deployment was successful
298 | [.console-output]
299 | [source,bash,subs="attributes+,+macros"]
300 | ----
301 | deployment.apps/welcome-php created
302 | ----
303 |
304 | [NOTE]
305 | ====
306 | You can pass not only directories, but URLs as well.
307 | The only requirement is that you have a `kustomization.yaml` file in the path.
308 | ====
309 |
310 | Now that the deployment is created, you should see the pods running in the namespace with
311 |
312 | [.console-input]
313 | [source,bash,subs="attributes+,+macros"]
314 | ----
315 | oc get pods -n {user}-bgdk
316 | ----
317 |
318 | The console should return something along the lines of
319 |
320 | [.console-output]
321 | [source,bash,subs="attributes+,+macros"]
322 | ----
323 | NAME READY STATUS RESTARTS AGE
324 | welcome-php-9474fc448-sthzr 1/1 Running 0 34s
325 | ----
326 |
327 | You can also see the deployment was created with the additional labels
328 |
329 | [.console-input]
330 | [source,bash,subs="attributes+,+macros"]
331 | ----
332 | oc get deployment welcome-php -o jsonpath='{.metadata.labels}{"\n"}' -n {user}-bgdk
333 | ----
334 |
335 | Resulting in
336 | [.console-output]
337 | [source,json,subs="attributes+,+macros"]
338 | ----
339 | {"app": "welcome-php","testkey": "testvalue"}
340 | ----
341 |
342 | Finally, check that the image was updated based on the customization we made
343 |
344 | [.console-input]
345 | [source,bash,subs="attributes+,+macros"]
346 | ----
347 | oc get deploy welcome-php -n {user}-bgdk -o jsonpath='{.spec.template.spec.containers[].image}{"\n"}'
348 | ----
349 |
350 | The output should return
351 | [.console-output]
352 | [source,bash,subs="attributes+,+macros"]
353 | ----
354 | quay.io/redhatworkshops/welcome-php:ffcd15
355 | ----
356 |
357 | As you can see `kustomize` can be a powerful tool.
358 |
359 | You can delete the applied resources with `oc delete` and kustomize, too
360 |
361 | [.console-input]
362 | [source,bash,subs="attributes+,+macros"]
363 | ----
364 | oc delete -n {user}-bgdk -k .
365 | ----
366 |
367 | Once you run this command, check that you see the following to confirm deletion
368 |
369 | [.console-output]
370 | [source,bash,subs="attributes+,+macros"]
371 | ----
372 | deployment.apps "welcome-php" deleted
373 | ----
374 |
375 | [#deploying_kustomized_application]
376 | == Deploying Kustomized Application
377 |
378 | In Chapter 2 - GitOps Basics, you learned that in a GitOps workflow the
379 | entire application stack (including infrastructure) is reflected
380 | in a Git repo. The challenge is how to do this without duplicating
381 | YAML.
382 |
383 | So now that you've explored `kustomize`, let's see how it fits into Argo
384 | CD and how it can be used in a GitOps workflow.
385 |
386 | Before proceeding, move back into the examples home directory:
387 |
388 | [.console-input]
389 | [source,bash,subs="attributes+,+macros"]
390 | ----
391 | cd ~/openshift-gitops-workshop/content/modules/ROOT/examples
392 | ----
393 |
394 | [#kustomized_application]
395 | === Kustomized Application
396 |
397 | Argo CD has native support for Kustomize. You can use this to avoid
398 | duplicating YAML for each deployment. This is especially helpful if you
399 | have different environments or clusters you're deploying to.
400 |
401 | Take a look at this `Application` definition:
402 |
403 | [.console-input]
404 | [source,bash,subs="attributes+,+macros"]
405 | ----
406 | cat ./bgdk-app.yaml
407 | ----
408 |
409 | .link:https://github.com/OpenShiftDemos/openshift-gitops-workshop/blob/{gitops_revision}/content/modules/ROOT/examples/bgdk-app.yaml[bgdk-app.yaml,window='_blank']
410 | [source,yaml,subs="+macros,attributes+"]
411 | ----
412 | include::ROOT:example$bgdk-app.yaml[]
413 | ----
414 |
415 | As you will see below, this `Application` definition refers to the same **base** resources you used in
416 | Chapter 2. It references a directory path (`content/modules/ROOT/examples/bgdk`)
417 | which contains a new `kustomization.yaml` file specific to this application. This concept is called an **overlay**.
418 | Where a **base** set of manifests are **overlay**-d with your customizations.
419 |
420 | Click link:https://kubernetes.io/docs/tasks/manage-kubernetes-objects/kustomization/#bases-and-overlays[here,window='_blank'] to learn more about Kustomize bases and overlays,
421 |
422 | Now take a look at this `Kustomization` definition:
423 |
424 | [.console-input]
425 | [source,bash,subs="attributes+,+macros"]
426 | ----
427 | cat ./kustomization.yaml
428 | ----
429 |
430 | .link:https://github.com/OpenShiftDemos/openshift-gitops-workshop/blob/{gitops_revision}/content/modules/ROOT/examples/bgdk/kustomization.yaml[kustomization.yaml,window='_blank']
431 | [source,yaml,subs="+macros,attributes+"]
432 | ----
433 | include::ROOT:example$bgdk/kustomization.yaml[]
434 | ----
435 |
436 | This `kustomization.yaml` takes the base application located at `content/modules/ROOT/examples/bgd-base`
437 | and patches the `Deployment` manifest so that you get yellow dots instead of blue ones.
438 |
439 | Now deploy this application:
440 |
441 | [.console-input]
442 | [source,bash,subs="attributes+,+macros"]
443 | ----
444 | sed 's/$USER/{user}/' ~/openshift-gitops-workshop/content/modules/ROOT/examples/bgdk-app.yaml | oc apply -n {user}-argocd -f -
445 | ----
446 |
447 | [#argocd_web_console]
448 | === The Argo CD Web Console
449 |
450 | Switch back to the Argo CD Web UI, you may be
451 | presented with the Argo CD login screen again.
452 |
453 | image::argo-cd-login.png[ArgoCD Login]
454 |
455 | You can login using your the same credential you used for OpenShift which
456 | were provided by the workshop administrator.
457 |
458 | This should now show you two apps on the Argo CD UI.
459 |
460 | image::two-apps.png[Two Apps]
461 |
462 | Open the Route for this application. It's in the `{user}-bgdk` Project.
463 | Remember you can get this from the topology view, or from the CLI:
464 |
465 | [.console-input]
466 | [source,bash,subs="attributes+,+macros"]
467 | ----
468 | oc get route -n {user}-bgdk bgd -o jsonpath='{"http://"}{.spec.host}{"\n"}'
469 | ----
470 |
471 | You should see yellow balls flying around. This is the same application you used
472 | previously, and so you know that by changing the environment variable on the
473 | deployment you can change the ball color.
474 |
475 | Argo CD deployed the application with your `kustomize`-ations! To review what we
476 | just did:
477 |
478 | * Deployed an Application called `bgd` with a blue square.
479 | * Deployed another Application based on `bgd` called `bgdk`
480 | * The Application `bgdk` was deployed in its own namespace, with deployment
481 | customizations.
482 | * ALL without having to duplicate YAML!
483 |
--------------------------------------------------------------------------------
/content/modules/ROOT/pages/04-helm.adoc:
--------------------------------------------------------------------------------
1 | = Helm
2 | include::_attributes.adoc[]
3 |
4 | link:https://helm.sh/[Helm] is a package and install manager that standardises and
5 | simplifies packaging and deployment of containerized applications with Kubernetes. Unlike Kustomize, which
6 | uses a patching approach, Helm uses templating to enable users to tailor the deployed manifests
7 | as required.
8 |
9 | [#exploring-helm]
10 | == Exploring Helm
11 |
12 | The principles of 'Helm' are as follows:
13 |
14 | * A package manager for Kubernetes with applications packaged as charts
15 | * Uses templates to enable applications to be configured per installation
16 | * Parameters for the chart are held in a `values.yaml` file and consumed by the templates
17 |
18 | image::helm-logo.png[Helm Logo]
19 |
20 | [#exploring-helm-cli]
21 | == Exploring the Helm CLI
22 |
23 | Similar to Kustomize from the previous lab, the `helm` CLI should have been installed as part of the lab
24 | setup. Verify that it has been installed.
25 |
26 | [.console-input]
27 | [source,bash,subs="attributes+,+macros"]
28 | ----
29 | helm version --short
30 | ----
31 |
32 | This should display the version, it should look something like this.
33 |
34 | [.console-output]
35 | [source,bash,subs="attributes+,+macros"]
36 | ----
37 | v3.12.1+11.el8+g8cc4ba6
38 | ----
39 |
40 | Helm as a package manager can be used to install a Helm chart into a kubernetes cluster
41 | and can then manage the lifecycle of the application including upgrades and uninstalling the
42 | application. However Helm can also render the chart as pure yaml without installing the
43 | application in a cluster.
44 |
45 | Argo CD follows a philosophy of managing manifests and as a result it interacts with Helm by
46 | having Helm templating the chart. It does not install the chart in a Kubernetes cluster. The
47 | lifecycle of a Helm chart in Argo CD is managed by updating the version of the chart Argo CD is
48 | using and having Argo CD render the new version of the chart.
49 |
50 | As a result for the purpose of this workshop we will be focusing on the `helm template`
51 | command rather than `helm install`.
52 |
53 | [#exploring-helm-charts]
54 | == Exploring Helm Charts
55 |
56 | In this section we will explore the chart that we will be deploying into the cluster using GitOps.
57 | This chart will be used to deploy the same application we did previously with Kustomize. We will work
58 | with a chart in the
59 | `documentation/modules/ROOT/examples/bgd-helm-chart` directory within the
60 | repository you cloned.
61 |
62 | [.console-input]
63 | [source,bash,subs="attributes+,+macros"]
64 | ----
65 | cd ~/openshift-gitops-workshop/content/modules/ROOT/examples/bgd-helm-chart
66 | ----
67 |
68 | Next if you run the `ls` command you should see two files: `Chart.yaml` and `values.yaml`, as well
69 | as a directory called templates. Let's have a look at these in more detail.
70 |
71 | [.console-input]
72 | [source,bash,subs="attributes+,+macros"]
73 | ----
74 | cat ./chart.yaml
75 | ----
76 |
77 | .link:https://github.com/OpenShiftDemos/openshift-gitops-workshop/blob/{gitops_revision}/content/modules/ROOT/examples/bgd-helm-chart/Chart.yaml[Chart.yaml,window='_blank']
78 | [source,yaml,subs="+macros,attributes+"]
79 | ----
80 | include::ROOT:example$bgd-helm-chart/Chart.yaml[]
81 | ----
82 |
83 | This file is the link:https://helm.sh/docs/topics/charts/#the-chartyaml-file[chart definition] which specifies name, version and other characteristics of the chart.
84 |
85 | [.console-input]
86 | [source,bash,subs="attributes+,+macros"]
87 | ----
88 | cat ./values.yaml
89 | ----
90 |
91 | .link:https://github.com/OpenShiftDemos/openshift-gitops-workshop/blob/{gitops_revision}/content/modules/ROOT/examples/bgd-helm-chart/values.yaml[values.yaml,window='_blank']
92 | [source,yaml,subs="+macros,attributes+"]
93 | ----
94 | include::ROOT:example$bgd-helm-chart/values.yaml[]
95 | ----
96 |
97 | The `values.yaml` file is the default set of values that will be used by the chart. When templating or installing the chart
98 | you can provide your own values.yaml to override some or all of these defaults as needed for a specific use case.
99 |
100 | Notice that since this is a yaml file parameters can be hierarchical which enables grouping related parameters together as shown
101 | by the `image` section.
102 |
103 | The templates/ directory is where template files reside. When Helm assesses a chart, it processes all files in the templates/ directory using the template rendering engine. The results of these templates are then gathered and forwarded to Kubernetes.You can learn more about templating link:https://helm.sh/docs/chart_template_guide/getting_started/[here].
104 |
105 | [#helm-template]
106 | == Helm Template
107 |
108 | In this section, we will explore how to use the `helm template` command to generate Kubernetes manifests from a Helm chart. This command is a fundamental tool for understanding how Helm charts work and for visualising the resources they create.
109 |
110 | ==== Step 1: Run the Helm template Command
111 |
112 | Execute the following command to render the chart template from your local directory and display the output on the screen:
113 |
114 | [.console-input]
115 | [source,bash,subs="attributes+,+macros"]
116 | ----
117 | helm template bgd ~/openshift-gitops-workshop/content/modules/ROOT/examples/bgd-helm-chart
118 | ----
119 |
120 | ==== Step 2: View the Output
121 |
122 |
123 | After running the command, you will see the output of the `helm template` command, which represents the generated Kubernetes manifest files. Below is an example of what you can expect to see:
124 |
125 | You will see the output of the `helm template`:
126 |
127 | [.console-output]
128 | [source,yaml,subs="attributes+,+macros"]
129 | ----
130 | apiVersion: v1
131 | kind: Service
132 | metadata:
133 | labels:
134 | app: bgd
135 | name: bgd
136 | spec:
137 | ports:
138 | - port: 8080
139 | protocol: TCP
140 | targetPort: 8080
141 | selector:
142 | app: bgd
143 | ---
144 | # Source: bgd/templates/deployment.yaml
145 | apiVersion: apps/v1
146 | kind: Deployment
147 | metadata:
148 | labels:
149 | app: bgd
150 | name: bgd
151 | spec:
152 | replicas: 1
153 | selector:
154 | matchLabels:
155 | app: bgd
156 | strategy: {}
157 | template:
158 | metadata:
159 | labels:
160 | app: bgd
161 | spec:
162 | containers:
163 | - image: quay.io/rhdevelopers/bgd:1.0.0
164 | imagePullPolicy: IfNotPresent
165 | name: bgd
166 | env:
167 | - name: COLOR
168 | value: yellow
169 | resources: {}
170 | securityContext:
171 | allowPrivilegeEscalation: false
172 | capabilities:
173 | drop:
174 | - ALL
175 | securityContext:
176 | runAsNonRoot: true
177 | seccompProfile:
178 | type: RuntimeDefault
179 | ---
180 | # Source: bgd/templates/route.yaml
181 | apiVersion: route.openshift.io/v1
182 | kind: Route
183 | metadata:
184 | labels:
185 | app: bgd
186 | name: bgd
187 | spec:
188 | port:
189 | targetPort: 8080
190 | to:
191 | kind: Service
192 | name: bgd
193 | weight: 100
194 | ----
195 |
196 | [#helm-charts-deploy-applications]
197 | == Using Helm charts to deploy applications in Argo CD
198 |
199 | In this section, we will utilise Helm charts to deploy applications within Argo CD. Helm charts provide a convenient way to manage and deploy Kubernetes applications. We will first examine the configuration file for an Argo CD Application that deploys a Helm chart for the BGD app. This file contains essential configuration details such as the destination, source, project, and sync policy.
200 |
201 | ==== Step 1: View the Argo CD Application Configuration
202 |
203 |
204 | To view the YAML configuration file for the Argo CD Application, execute the following command:
205 |
206 |
207 | [.console-input]
208 | [source,bash,subs="attributes+,+macros"]
209 | ----
210 | cat ~/openshift-gitops-workshop/content/modules/ROOT/examples/bgd-app-helm.yaml
211 | ----
212 |
213 | You should see the following output:
214 |
215 |
216 | .link:https://github.com/OpenShiftDemos/openshift-gitops-workshop/blob/main/content/modules/ROOT/examples/bgd-app-helm.yaml[bgd-app-helm.yaml,window='_blank']
217 | [source,yaml,subs="+macros,attributes+"]
218 | ----
219 | include::ROOT:example$bgd-app-helm.yaml[]
220 | ----
221 |
222 | This YAML configuration defines an Argo CD Application named "bgd-helm" that deploys a Helm chart from a specific Git repository to the "{user}-bgdh" namespace.
223 |
224 | ==== Step 2: Deploy/Observe the Argo CD Application
225 |
226 |
227 | Apply the configuration in the file to create the Argo CD Application in the namespace {user}-argocd. This application will deploy the Helm chart for the BGD app:
228 |
229 | [.console-input]
230 | [source,bash,subs="attributes+,+macros"]
231 | ----
232 | sed 's/$USER/{user}/' ~/openshift-gitops-workshop/content/modules/ROOT/examples/bgd-app-helm.yaml | oc apply -n {user}-argocd -f -
233 | ----
234 |
235 | In the ArgoCD interface you should see the successful deployment of the "bgd-helm" application.
236 |
237 | image::bgd-helm1.png[]
238 |
239 | Now click on the "bgd-helm" application. We will explore its deployment. You can tell by the icon that it's deployed via a Helm chart from a Git repository. Although you could deploy it through a Helm repository, we're using a Git repository for this demonstration.
240 |
241 | Access the application details by clicking on the "App Details" option.
242 |
243 | image::bgd-helm2.png[]
244 |
245 | Next, click on "Parameters." You will notice that there is no separate values file as the application is deployed directly from the Helm chart. However, it has automatically retrieved the following values:
246 |
247 | image::bgd-helm3.png[]
248 |
249 | If you view the route of your application you should be able to see the animated balls are now yellow!
250 |
251 | You can see the link by using this command:
252 |
253 | [.console-input]
254 | [source,bash,subs="attributes+,+macros"]
255 | ----
256 | oc get route bgd-helm -n {user}-bgdh -o jsonpath='{"http://"}{.spec.host}{"\n"}'
257 | ----
258 |
259 | image::yellowoutput.png[]
260 |
261 |
262 | [#custom-values-files]
263 | == Custom values files
264 |
265 | In this section we explore the use of custom values files with Helm charts. These allow you to tailor deployments to your specific needs. Custom values files offer the flexibility to override default settings without modifying the chart directly.
266 |
267 | ==== Step 1: Explore the Custom Values Configuration
268 |
269 |
270 | Begin by examining a YAML file named "bgd-app-helm-custom.yaml." This file closely resembles the previous configuration but introduces a critical difference: it references a custom values file stored in the same Git repository as the Helm chart.
271 |
272 | [.console-input]
273 | [source,bash,subs="attributes+,+macros"]
274 | ----
275 | cat ~/openshift-gitops-workshop/content/modules/ROOT/examples/bgd-app-helm-custom.yaml
276 | ----
277 |
278 | You will notice a section in this YAML file that defines the name and path of the custom values file responsible for adjusting the Helm chart's default settings:
279 |
280 | [.console-output]
281 | [source,yaml,subs="attributes+,+macros"]
282 | ----
283 |
284 | helm:
285 | valueFiles:
286 | - custom_values_1/values.yaml
287 | ----
288 |
289 | This configuration specifies how Helm accesses and uses the custom values file to modify the Helm chart's behaviour.
290 |
291 | ==== Step 2: Explore the Custom Values File
292 |
293 |
294 | Examine the custom values file that is being referenced:
295 |
296 | [.console-input]
297 | [source,bash,subs="attributes+,+macros"]
298 | ----
299 | cat ~/openshift-gitops-workshop/content/modules/ROOT/examples/bgd-helm-chart/custom_values_1/values.yaml
300 | ----
301 |
302 | You should see that it transforms the color of the animated balls from yellow to green, among other settings:
303 |
304 | [.console-output]
305 | [source,yaml,subs="attributes+,+macros"]
306 | ----
307 | replicas: 1
308 | color: green
309 |
310 | image:
311 | name: quay.io/rhdevelopers/bgd
312 | tag: "1.0.0"
313 | pullPolicy: IfNotPresent
314 | ----
315 |
316 | ==== Step 3: Apply the Custom Values
317 |
318 | Now, apply the custom values file to the initial application using Argo CD:
319 |
320 | [.console-input]
321 | [source,bash,subs="attributes+,+macros"]
322 | ----
323 | sed 's/$USER/{user}/' ~/openshift-gitops-workshop/content/modules/ROOT/examples/bgd-app-helm-custom.yaml | oc apply -n {user}-argocd -f -
324 | ----
325 |
326 | ==== Step 4: Verify the Changes
327 |
328 |
329 | Return to ArgoCD and click on "App Details," then navigate to the "Parameters" section, where you previously made changes. You’ll notice that the custom value file has been successfully added, and it has updated the values to display the animated balls in green.
330 |
331 |
332 | image::bgd-helm4.png[]
333 |
334 | Using ArgoCD to deploy a Helm chart with custom values files offers the advantage of tailoring and overriding the chart’s default settings, all without needing to alter the chart directly. This flexibility enables you to deploy the chart with different configurations to suit various environments or specific use cases.
335 |
336 | ==== Step 5: Confirming the Change
337 |
338 |
339 | If you access the route again the animated balls should now be green!
340 |
341 | You can see the link by using this command:
342 |
343 | [.console-input]
344 | [source,bash,subs="attributes+,+macros"]
345 | ----
346 | oc get route bgd-helm -n {user}-bgdh -o jsonpath='{"http://"}{.spec.host}{"\n"}'
347 | ----
348 |
349 | image::bgd-green.png[]
350 |
351 | [#parameter_values]
352 | == Argo CD Application with Parameter Values
353 |
354 | In this section, we'll explore a YAML file where parameter values are embedded directly within the Application, eliminating the need for separate values files.
355 |
356 | ==== Step 1: Examine the Parameterised Configuration
357 |
358 | Begin by examining the YAML file named "bgd-app-helm-para.yaml." This file, similar to the previous configurations, defines an Argo CD Application for deploying a Helm chart. However, a notable difference is the inclusion of all desired parameter values directly within the YAML file:
359 |
360 | [.console-input]
361 | [source,bash,subs="attributes+,+macros"]
362 | ----
363 | cat ~/openshift-gitops-workshop/content/modules/ROOT/examples/bgd-app-helm-para.yaml
364 | ----
365 |
366 | .link:https://github.com/OpenShiftDemos/openshift-gitops-workshop/blob/{gitops_revision}/content/modules/ROOT/examples/bgd-app-helm-para.yaml[bgd-app-helm-para.yaml,window='_blank']
367 | [source,yaml,subs="+macros,attributes+"]
368 | ----
369 | include::ROOT:example$bgd-app-helm-para.yaml[]
370 | ----
371 |
372 | In the 'parameters' section of the YAML, you will notice that we have included all the desired values, such as the color, image name, image pull policy, image tag, and the number of replicas.
373 |
374 | This approach allows us to apply these settings directly to Argo CD without relying on external values files. For this example we’ve changed the color to purple.
375 |
376 | ==== Step 2: Apply the Parameterised Configuration
377 |
378 | Apply this parameterised configuration to Argo CD:
379 |
380 | [.console-input]
381 | [source,bash,subs="attributes+,+macros"]
382 | ----
383 | sed 's/$USER/{user}/' ~/openshift-gitops-workshop/content/modules/ROOT/examples/bgd-app-helm-para.yaml | oc apply -n {user}-argocd -f -
384 | ----
385 |
386 | Return to the ArgoCD interface and navigate to the 'App Details' section. Click on 'Parameters.' You will notice that the custom values file, which was present in the previous example, has been successfully removed from the ArgoCD Application.
387 |
388 |
389 | image::bgd-helm5.png[]
390 |
391 | Deploying a Helm chart through ArgoCD with integrated parameters allows you to customise default settings without modifying the chart itself or relying on external values files. This centralises configuration management across different environments.
392 |
393 | Step 3: Confirm the Application
394 |
395 |
396 | Access the route again, and you should now see the application in purple. Use the following command to view the application:
397 |
398 | [.console-input]
399 | [source,bash,subs="attributes+,+macros"]
400 | ----
401 | oc get route bgd-helm -n {user}-bgdh -o jsonpath='{"http://"}{.spec.host}{"\n"}'
402 | ----
403 |
404 | image::bgd-purple.png[]
405 |
406 | ==== Step 4: Make Further Adjustments
407 |
408 |
409 | To make changes to the parameters, simply click on the 'Edit' button. Feel free to explore and make adjustments as desired during the workshop.
410 |
411 | [#helm-conclusion]
412 | == Conclusion: Helm on ArgoCD
413 |
414 | In this module we learned how to deploy Helm charts using Argo CD and we looked at the different ways in Argo CD to pass parameters to the Helm chart. A brief summary of the Pros and Cons of the approaches we examined can be summarised as follows:
415 |
416 | |===
417 | |*Custom Values File - Pros* | *Built-in Parameters - Pros*
418 | |Customise Configurations:Create a separate values.yaml file to tailor configurations for different environments. Override default values in the chart’s values.yaml file with your specific settings.|Environment-specific YAML: Manage YAML configurations for each environment using branches or tags.
419 | | Rapid Modification: External values files provide an advantage over managing multiple Helm charts with individual values.
420 | Facilitates quick modification of multiple values through a single file change.|No reliance on external values files makes local testing and debugging with `helm template` and `helm lint` easier.
421 | |*Custom Values File - Cons*|*Built-in Parameters - Cons*
422 | |Manual Updates: Requires manual updates to the values file, deviating from the default Helm charts behaviour.|Customisation Limitations: Limited customisation options due to YAML file constraints.
423 | |Potential for errors or inconsistencies if the values file and chart configurations do not align.|Necessitates a separate chart for each environment, potentially leading to redundancy.
424 | |===
425 |
426 | You can read more about the patterns for deploying Helm charts with Argo CD link:https://developers.redhat.com/articles/2023/05/25/3-patterns-deploying-helm-charts-argocd[here].
427 |
428 | In conclusion, this module introduced Helm as a Kubernetes package manager with templating capabilities. We explored its usage in ArgoCD, focusing on rendering Helm charts as pure YAML and customising deployments with custom values and parameter values for flexible configuration management. This approach streamlines the deployment process and enables customised configurations without altering the Helm chart directly.
429 |
--------------------------------------------------------------------------------
/content/modules/ROOT/pages/05-syncwaves-hooks.adoc:
--------------------------------------------------------------------------------
1 | = Sync Waves and Hooks
2 | include::_attributes.adoc[]
3 |
4 | https://argoproj.github.io/argo-cd/user-guide/sync-waves/[Sync waves,window='_blank']
5 | are used in Argo CD to order how manifests are applied to the cluster.
6 |
7 | https://argoproj.github.io/argo-cd/user-guide/resource_hooks/[Resource
8 | hooks,window='_blank'] break up the delivery of these manifests into different
9 | phases.
10 |
11 | Using a combination of sync waves and resource hooks, you can control how your
12 | application rolls out.
13 |
14 | This example will take you through the following steps:
15 |
16 | * Using sync waves to order deployment
17 | * Exploring resource hooks
18 | * Using sync waves and hooks together
19 |
20 | The sample application that we will deploy is a TODO application with a database
21 | and, apart from deployment files, sync waves and resource hooks are used:
22 |
23 | image::todo-app.png[]
24 |
25 | [#using_syncwaves]
26 | == Using Sync Waves
27 |
28 | A sync wave is a way to order how Argo CD applies the manifests that are stored
29 | in git. All manifests have a wave of zero by default, but you can set these by
30 | using the `argocd.argoproj.io/sync-wave` annotation.
31 |
32 | Example:
33 |
34 | [.console-output]
35 | [source,yaml,subs="attributes+,+macros"]
36 | ----
37 | metadata:
38 | annotations:
39 | argocd.argoproj.io/sync-wave: "2"
40 | ----
41 |
42 | The wave can also be negative as well.
43 |
44 | [.console-output]
45 | [source,yaml,subs="attributes+,+macros"]
46 | ----
47 | metadata:
48 | annotations:
49 | argocd.argoproj.io/sync-wave: "-5"
50 | ----
51 |
52 | When Argo CD starts a sync action, the manifests get placed in the following
53 | order:
54 |
55 | * The Phase that they're in (we'll cover phases in the next section)
56 | * The wave the resource is annotated in (starting from the lowest value to the
57 | highest)
58 | * By kind (Namespaces first, then services, then deployments, etc ...)
59 | * By name (ascending order)
60 |
61 | Read more about sync waves on the
62 | https://argoproj.github.io/argo-cd/user-guide/sync-waves/#how-do-i-configure-waves[official
63 | documentation site,window='_blank'].
64 |
65 | [#exploring_the_manifests_waves]
66 | === Exploring Sync Wave Manifests
67 |
68 | The sample application that you will deploy has several waves.
69 |
70 | First, *PostgreSQL* with sync wave *0*. It has a Deployment:
71 |
72 | [source,yaml,subs="+macros,attributes+"]
73 | ----
74 | include::ROOT:example$todo/postgres-deployment.yaml[]
75 | ----
76 |
77 | The *PostgreSQL Service* with sync wave *0*:
78 |
79 | [source,yaml,subs="+macros,attributes+"]
80 | ----
81 | include::ROOT:example$todo/postgres-service.yaml[]
82 | ----
83 |
84 | Second, *Database table creation* with sync wave *1*:
85 |
86 | [source,yaml,subs="+macros,attributes+"]
87 | ----
88 | include::ROOT:example$todo/postgres-create-table.yaml[]
89 | ----
90 |
91 | The *TODO application deployment* with sync wave *2*:
92 |
93 | [source,yaml,subs="+macros,attributes+"]
94 | ----
95 | include::ROOT:example$todo/todo-deployment.yaml[]
96 | ----
97 |
98 | The *TODO Service* with sync wave *2*:
99 |
100 | [source,yaml,subs="+macros,attributes+"]
101 | ----
102 | include::ROOT:example$todo/todo-service.yaml[]
103 | ----
104 |
105 | The *TODO Route* with sync wave *3*:
106 |
107 | [source,yaml,subs="+macros,attributes+"]
108 | ----
109 | include::ROOT:example$todo/todo-route.yaml[]
110 | ----
111 |
112 | First, the PostgreSQL Deployment will be applied. After that reports healthy,
113 | Argo CD will continue with the rest of resources.
114 |
115 | > NOTE: Argo CD won't apply the next manifest in a wave until the previous
116 | reports "healthy".
117 |
118 | [#using_resource_hooks]
119 | == Using Resource Hooks
120 |
121 | Now that you're familiar with sync waves, we can begin exploring applying
122 | manifests in phases using `resource hooks`.
123 |
124 | Controlling your sync operation can be further refined by using
125 | hooks. These hooks can run before, during, and after a sync
126 | operation. These hooks are:
127 |
128 | * **PreSync** - Runs before the sync operation. This can be something like a
129 | database backup before a schema change
130 | * **Sync** - Runs after `PreSync` has successfully ran. This will run alongside
131 | your normal manifests.
132 | * **PostSync** - Runs after `Sync` has ran successfully. This can be something
133 | like a Slack message or an email notification.
134 | * **SyncFail** - Runs if the `Sync` operation has failed. This is also used to
135 | send notifications or do other evasive actions.
136 |
137 | To enable a sync, annotate the specific object manifest with
138 | `argocd.argoproj.io/hook` with the type of sync you want to use for that
139 | resource. For example, if you wanted to use the `PreSync` hook:
140 |
141 | [.console-output]
142 | [source,yaml,subs="attributes+,+macros"]
143 | ----
144 | metadata:
145 | annotations:
146 | argocd.argoproj.io/hook: PreSync
147 | ----
148 |
149 | You can also have the hooks be deleted after a successful/unsuccessful run.
150 |
151 | * **HookSucceeded** - The resource will be deleted after it has succeeded.
152 | * **HookFailed** - The resource will be deleted if it has failed.
153 | * **BeforeHookCreation** - The resource will be deleted before a new one is
154 | created (when a new sync is triggered).
155 |
156 | You can apply these with the `argocd.argoproj.io/hook-delete-policy`
157 | annotation. For example:
158 |
159 | [.console-output]
160 | [source,yaml,subs="attributes+,+macros"]
161 | ----
162 | metadata:
163 | annotations:
164 | argocd.argoproj.io/hook: PostSync
165 | argocd.argoproj.io/hook-delete-policy: HookSucceeded
166 | ----
167 |
168 | > IMPORTANT: Since a sync can fail in any phase, you can come to a situation where
169 | the application never reports healthy!
170 |
171 | Although hooks can be any resource, they are usually Pods and/or Jobs.
172 |
173 | To read more about resource hooks, consult the
174 | https://argoproj.github.io/argo-cd/user-guide/resource_hooks[official
175 | documentation]
176 |
177 | [#exploring_the_manifests_hooks]
178 | === Exploring Resource Hook Manifests
179 |
180 | Take a look at this `PostSync` manifest which sends an HTTP request to insert a
181 | new TODO item:
182 |
183 | [source,yaml,subs="+macros,attributes+"]
184 | ----
185 | include::ROOT:example$todo/todo-insert-data.yaml[]
186 | ----
187 | <1> This means that this Job will run in the `PostSync` phase, after the
188 | application of the manifests in the `Sync` phase.
189 |
190 | > IMPORTANT: Since there is no deletion policy, this job will "stick around"
191 | after completion.
192 |
193 | The execution order can be seen in the following diagram:
194 |
195 | image::presyncpost.png[]
196 |
197 | [#deploying_the_application]
198 | == Deploying The Application
199 |
200 | Taking a look at this manifest file: `todo-application.yaml`:
201 |
202 | [source,yaml,subs="+macros,attributes+"]
203 | ----
204 | include::ROOT:example$todo-application.yaml[]
205 | ----
206 |
207 | Create this application:
208 |
209 | [.console-input]
210 | [source,bash,subs="attributes+,+macros"]
211 | ----
212 | sed 's/$USER/{user}/' ~/openshift-gitops-workshop/content/modules/ROOT/examples/todo-application.yaml | oc apply -n {user}-argocd -f -
213 | ----
214 |
215 | [.console-output]
216 | [source,bash,subs="attributes+,+macros"]
217 | ----
218 | application.argoproj.io/todo-app created
219 | ----
220 |
221 | On the Argo CD WebUI, you should see another application appear.
222 |
223 | image::todo-card.png[TODO Card]
224 |
225 | Clicking on this "card" should take you over to the tree view.
226 |
227 | image::todo-argocd.png[TODO Tree]
228 |
229 | Observe the sync process. You will see the order that the resource has been applied, first the namespace creation and last the creation of Route to access the application.
230 |
231 | Once the application is fully synced. Take a look at the pods and jobs in
232 | the namespace:
233 |
234 | [.console-input]
235 | [source,bash,subs="attributes+,+macros"]
236 | ----
237 | oc get pods -n {user}-todo
238 | ----
239 |
240 | You should see that the Job is finished, but still there.
241 |
242 | [.console-output]
243 | [source,bash,subs="attributes+,+macros"]
244 | ----
245 | NAME READY STATUS RESTARTS AGE
246 | postgresql-599467fd86-cgj9v 1/1 Running 0 32s
247 | todo-gitops-679d88f6f4-v4djp 1/1 Running 0 19s
248 | todo-table-xhddk 0/1 Completed 0 27s
249 | ----
250 |
251 | You can get the Route for your application from the topology view, or you can
252 | use the following CLI snippet to get the exact URL you need:
253 |
254 | [.console-input]
255 | [source,bash,subs="attributes+,+macros"]
256 | ----
257 | oc get route -n user%USERNUM%-todo todo -o jsonpath='{"http://"}{.spec.host}{"/todo.html\n"}'
258 | ----
259 |
260 | > WARNING: You need to use `/todo.html` in the URL to access the application. It
261 | does not automatically redirect.
262 |
263 | Your application should look like this:
264 |
265 | image::todo-app-screenshot.png[TODO]
266 |
267 | The `todo-insert` Job is not shown as it was configured to be deleted if succeeded:
268 |
269 | [source, yaml]
270 | ----
271 | argocd.argoproj.io/hook-delete-policy: HookSucceeded
272 | ----
273 |
--------------------------------------------------------------------------------
/content/modules/ROOT/pages/06-conclusion.adoc:
--------------------------------------------------------------------------------
1 | = Conclusion
2 | include::_attributes.adoc[]
3 |
4 | Thanks for participating in this workshop, we hope you enjoyed it.
5 |
6 | == Resources
7 |
8 | Interested in learning more? Check out these other great resources from Red Hat:
9 |
10 | === Free GitOps e-books from Red Hat:
11 |
12 | [cols="a,a", frame=none, grid=none]
13 | |===
14 | | image::PathtoGitOps_EBook.png[link="https://developers.redhat.com/e-books/path-gitops",window='_blank']
15 | | image::gitops-cookbook-ebook-cover.png[link="https://developers.redhat.com/e-books/gitops-cookbook",window='_blank']
16 | |===
17 |
18 | === Online Resources
19 |
20 | ==== https://developers.redhat.com/learn/openshift/develop-gitops[Kubernetes by Example introduction to Argo CD,window='_blank']
21 |
22 | ==== http://red.ht/gitops[GitOps Guide to the Galaxy Streaming Series,window='_blank']
23 |
--------------------------------------------------------------------------------
/content/modules/ROOT/pages/_attributes.adoc:
--------------------------------------------------------------------------------
1 | :experimental:
2 | :source-highlighter: highlightjs
3 |
--------------------------------------------------------------------------------
/content/modules/ROOT/pages/index.adoc:
--------------------------------------------------------------------------------
1 | = Welcome to the OpenShift GitOps Workshop
2 | :page-layout: home
3 | :!sectids:
4 |
5 | OpenShift Gitops is based on the upstream
6 | https://argoproj.github.io/argo-cd/[Argo CD,window='_blank'] project. ArgoCD is
7 | a declarative, GitOps continuous delivery tool for Kubernetes.
8 |
9 | It follows the **GitOps** pattern of using Git repositories as the source of
10 | truth for defining the desired application state.
11 |
12 | It automates the deployment of the desired application states in the specified
13 | target environments. Application deployments can track updates to branches,
14 | tags, or be pinned to a specific version of manifests at a Git commit.
15 |
16 | image::argocd-sync-flow.png[Argo CD Sync Flow, 700]
17 |
18 | == GitOps
19 |
20 | https://www.openshift.com/learn/topics/gitops/[GitOps,window='_blank'] is a set of practices that leverages Git workflows to manage infrastructure and application configurations.
21 | By using Git repositories as the source of truth, it allows the DevOps team to store the entire state of the cluster configuration in Git so that the trail of changes are visible and auditable.
22 |
23 | **GitOps** simplifies the propagation of infrastructure and application
24 | configuration changes across multiple clusters by defining your infrastructure and applications definitions as “code”.
25 |
26 | * Ensure that the clusters have similar states for configuration, monitoring, or storage.
27 | * Recover or recreate clusters from a known state.
28 | * Create clusters with a known state.
29 | * Apply or revert configuration changes to multiple clusters.
30 | * Associate templated configuration with different environments.
31 |
--------------------------------------------------------------------------------
/content/modules/ROOT/partials/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/content/modules/ROOT/partials/.gitkeep
--------------------------------------------------------------------------------
/default-site.yml:
--------------------------------------------------------------------------------
1 | ---
2 | site:
3 | title: OpenShift GitOps Workshop
4 | url: https://openshiftdemos.github.io/openshift-gitops-workshop
5 | start_page: openshift-gitops-workshop::index.adoc
6 |
7 | content:
8 | sources:
9 | - url: .
10 | start_path: content
11 |
12 | ui:
13 | bundle:
14 | url: https://github.com/rhpds/rhdp_showroom_theme/releases/download/v0.0.1/ui-bundle.zip
15 | snapshot: true
16 | supplemental_files:
17 | - path: ./content/supplemental-ui
18 | - path: ./content/lib
19 | - path: .nojekyll
20 | - path: ui.yml
21 | contents: "static_files: [ .nojekyll ]"
22 |
23 | runtime:
24 | cache_dir: ./.cache/antora
25 |
26 | output:
27 | dir: ./www
28 |
29 | antora:
30 | extensions:
31 | - id: dev-mode
32 | require: ./content/lib/dev-mode.js
33 | enabled: true
34 |
--------------------------------------------------------------------------------
/dev-mode.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/dev-mode.png
--------------------------------------------------------------------------------
/ui-links.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OpenShiftDemos/openshift-gitops-workshop/0bd9ebace068ae5e824d0063eeab1e87b68ce1f4/ui-links.png
--------------------------------------------------------------------------------
/utilities/lab-build:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | #
3 |
4 | echo "Starting build process..."
5 | echo "Removing old site..."
6 | rm -rf ./www/*
7 | echo "Building new site..."
8 |
9 | podman run --rm --name showroom-builder --platform linux/amd64 \
10 | -v "./:/antora:z" \
11 | docker.io/antora/antora --stacktrace default-site.yml
12 |
13 | echo "Build process complete. Check the ./www folder for the generated site."
14 | echo "To view the site locally, run the following command: utilities/lab-serve"
15 | echo "If already running then browse to http://localhost:8080/index.html"
16 |
--------------------------------------------------------------------------------
/utilities/lab-clean:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | #
3 |
4 | echo "Removing old site..."
5 | rm -rf ./www/*
6 | echo "Old site removed"
7 |
--------------------------------------------------------------------------------
/utilities/lab-serve:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | #
3 |
4 | echo "Starting serve process..."
5 | # TODO: Add case statement to allow stopping, starting, and restarting
6 | # TODO: Add logic to detect both podman and docker, if both are installed, use podman as default "first found"
7 |
8 | podman run -d --rm --name showroom-httpd -p 8080:8080 -p 8443:8443 \
9 | -v "./www:/var/www/html/:z" \
10 | registry.access.redhat.com/ubi9/httpd-24:1-301
11 |
12 | echo "Serving lab content on http://localhost:8080/index.html"
13 |
--------------------------------------------------------------------------------
/utilities/lab-stop:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | #
3 |
4 | echo "Stopping serve process..."
5 | podman kill showroom-httpd
6 | echo "Stopped serve process."
--------------------------------------------------------------------------------