You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tutorial.adoc
+17-19Lines changed: 17 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ Commodore Components allow you to customize and extend the number and variety of
19
19
20
20
There are many https://github.com/topics/commodore-component[Commodore Components] already published; they perform various tasks, all related to the maintenance of Kubernetes clusters of many different kinds, including https://www.openshift.com/[OpenShift] clusters.
21
21
22
-
WARNING: This tutorial has been prepared with version v0.2.0 of Commodore. Project Syn is moving fast, and we will update this tutorial accordingly as new features and capabilities are made available by the development team.
22
+
This tutorial has been prepared with version v0.2.0 of Commodore. Project Syn is moving fast, and we will update this tutorial accordingly as new features and capabilities are made available by the development team.
23
23
24
24
In this tutorial, we are going to do the following:
25
25
@@ -36,7 +36,7 @@ As for the required knowledge bits and pieces:
36
36
* You should understand https://syn.tools/syn/about/features.html[what Project Syn is], and its https://syn.tools/syn/about/architecture.html[architecture].
37
37
* You should have already followed the https://docs.syn.tools/syn/tutorials/getting-started.html[Getting Started with Project Syn] tutorial, and be familiar with common Project Syn tasks.
38
38
39
-
WARNING: This tutorial *was built and tested on a Linux system*; it should, however, be easily ported to macOS, since all tools referenced here are cross-platform.
39
+
This tutorial *was built on a Linux system*, and tested in both Linux and macOS; it should, however, be easily ported to other https://en.wikipedia.org/wiki/Unix-like[Unices], since all tools referenced here are cross-platform.
40
40
41
41
To follow this tutorial you will need quite an array of software in your system:
42
42
@@ -54,11 +54,11 @@ To follow this tutorial you will need quite an array of software in your system:
54
54
55
55
This tutorial project contains a `0_requirements.sh` script which outputs all of your currently installed versions of the aforementioned software packages.
56
56
57
-
IMPORTANT: The specified version numbers are the minimum required. Also, please make sure that both your GitLab and GitHub accounts must have SSH keys configured.
57
+
The specified version numbers are the minimum required. Also, please make sure that *both your GitLab and GitHub accounts must have SSH keys configured.*
58
58
59
59
== Preparations
60
60
61
-
Make sure to follow these three steps *before* starting the tutorial:
61
+
Follow these three steps *before* starting the tutorial:
62
62
63
63
. Check all required tools by running the `./0_requirements.sh` script.
64
64
. In GitHub, fork the https://github.com/projectsyn/commodore-defaults[commodore-defaults] project to your own personal account.
@@ -98,7 +98,7 @@ This script will launch a new Minikube instance, will apply all the required `ku
98
98
99
99
It will also expose the Lieutenant API using the https://ngrok.com/[ngrok] reverse proxy tool.
100
100
101
-
WARNING: You do not need a commercial (paying) ngrok account to use it; just https://ngrok.com/download[download] the version corresponding to your system and make sure it is accessible through your `PATH`.
101
+
You do not need a commercial (paying) ngrok account to use it; just https://ngrok.com/download[download] the version corresponding to your system and install it somewhere in your `PATH`.
102
102
103
103
Once the script has run, you will find two new private repositories in your GitLab account: one named `tutorial-cluster-minikube` and another named `tutorial-tenant`. Project Syn tools use these repositories to perform https://www.gitops.tech/["GitOps"] operations on all the clusters.
104
104
@@ -114,7 +114,7 @@ The second step in this tutorial is to bootstrap https://docs.syn.tools/commodor
114
114
$ export COMMODORE_SSH_PRIVATE_KEY=~/.ssh/id_rsa
115
115
----
116
116
117
-
IMPORTANT: Do not press the kbd:[Enter] key when prompted with the `If you don't see a command prompt, try pressing enter` message! Instead, type the passphrase of your SSH key.
117
+
Do not press the kbd:[Enter] key when prompted with the `If you don't see a command prompt, try pressing enter` message! Instead, type the passphrase of your SSH key.
Of course, in your case the NAME column will show different, random values. But we can see both clusters and the tenant object, all happily residing inside the realm of our Project Syn installation.
160
160
161
-
NOTE: For more information, check out the https://syn.tools/lieutenant-operator/explanation/design.html[diagram] in the Project Syn website.
161
+
For more information, check out the https://syn.tools/lieutenant-operator/explanation/design.html[diagram] in the Project Syn website.
162
162
163
163
==== Inspecting the Lieutenant API traffic
164
164
@@ -169,9 +169,7 @@ image::ngrok_inspect.png[]
169
169
170
170
=== Synthesize Kind or Microk8s clusters
171
171
172
-
IMPORTANT: This is an optional step!
173
-
174
-
If you feel adventurous enough, and still have enough available RAM in your system, install https://kind.sigs.k8s.io/[kind] or https://microk8s.io/[Microk8s] and run the `./4_synthesize_on_kind.sh` or `./4_synthesize_on_microk8s.sh` scripts, to spin up yet another cluster (or two!) to be added to your current tenant.
172
+
This is an optional step! If you feel adventurous enough, and still have enough available RAM in your system, install https://kind.sigs.k8s.io/[kind] or https://microk8s.io/[Microk8s] and run the `./4_synthesize_on_kind.sh` or `./4_synthesize_on_microk8s.sh` scripts, to spin up yet another cluster (or two!) to be added to your current tenant.
NOTE: Since we edited the `common.yml` file, the changes will propagate to all clusters.
412
+
Since we edited the `common.yml` file, the changes will propagate to all clusters. If you want your changes to apply to just one cluster, edit the corresponding file in the same folder.
@@ -534,7 +532,7 @@ We are done! You can now remove the clusters in your computer, and also remove t
534
532
* Run the `./5_delete.sh` script to deregister and stop all local clusters.
535
533
* Remove your clone of `commodore-defaults` on GitHub.
536
534
537
-
TIP: The GitLab projects `tutorial-tenant`, `tutorial-cluster-minikube`, and `tutorial-cluster-k3s` have been automatically deleted by the Lieutenant Operator.
535
+
The GitLab projects `tutorial-tenant`, `tutorial-cluster-minikube`, and `tutorial-cluster-k3s` have been automatically deleted by the Lieutenant Operator.
538
536
539
537
[source,bash]
540
538
----
@@ -569,6 +567,6 @@ I hope this tutorial has given you a good idea of what Commodore Components are,
569
567
570
568
Commodore Components can be used to deploy monitoring tools, to change the state of lots of clusters at once, to perform backup operations, to modify network policies, and many other tasks that otherwise would have to be performed manually.
571
569
572
-
Creating Commodore Components at the moment is a long task, but the rewards are high in terms of the economies of scale DevOps reach when managing multi-cluster architectures.
570
+
Creating Commodore Components at the moment is a long task, but the rewards are high in terms of the economies of scale DevOps reach when managing multi-cluster architectures. As a next step, we recommend that you read the https://openshift.docs.vshn.ch/oc4/references/projectsyn/developer.html[Commodore Component Developer Guidelines].
573
571
574
572
If you create a new open source Commodore Component, add the https://github.com/topics/commodore-component[`commodore-component` tag] on your GitHub project and let us know about it! We will be thrilled to check it out and who knows? Maybe even contribute back to your effort.
0 commit comments