Skip to content

Commit

Permalink
edit steps
Browse files Browse the repository at this point in the history
  • Loading branch information
dmuelle committed Apr 26, 2024
1 parent 62480d8 commit a5d3211
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions posts/2024-04-26-ArgoCD-Configuration-Drift.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -53,34 +53,35 @@ For a more detailed tutorial on using the Open Liberty Operator, see our interac
[#setup_argocd]
=== Set up ArgoCD for effective GitOps and continuous deployment

ArgoCD follows a GitOps pattern of using Git repositories as the source of truth to define the application state, which we will use to deploy and monitor our Open Liberty configuration repository. ArgoCD helps us identify any drift that occurs between the current cluster state and the desired state in the configuration repository.

First, we use the following commands from the https://argo-cd.readthedocs.io/en/stable/getting_started/[Quickstart section] of the ArgoCD docs to create a namespace that is called `argocd` and install ArgoCD by applying manifests to that namespace.
ArgoCD follows a GitOps pattern of using Git repositories as the source of truth to define the application state, which we will use to deploy and monitor our Open Liberty configuration repository. ArgoCD helps us identify any drift that occurs between the current cluster state and the desired state in the configuration repository. Using the ArgoCD user interface (UI) is a great way to get started, allowing us to create our application and identify configuration drift in a visual way.

1. Run the following commands from the https://argo-cd.readthedocs.io/en/stable/getting_started/[Quickstart section] of the ArgoCD docs to create a namespace that is called `argocd` and install ArgoCD by applying manifests to that namespace.
+
[source,console]
----
kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
----

Next, we need to get the default Admin credentials to access the ArgoCD user interface (UI). Using the ArgoCD UI is a great way to get started, allowing us to create our application and identify configuration drift in a visual way.
To get the default Admin password, run the following command:

2. Run the following command to get the default `admin` password to access the ArgoCD UI:
+
[source,console]
----
kubectl get secret argocd-initial-admin-secret -n argocd -o jsonpath='{.data.password}' | base64 -d
----
+
Copy the password so you can enter it to log in to the ArgoCD UI.

To access the ArgoCD UI:

3. To access the ArgoCD UI:
+
* If you are on Red Hat OpenShift with ingress configured, go to the route of the `argocd-server`
* Alternatively, you can access the UI with port forwarding by running the following command:
+
`kubectl port-forward svc/argocd-server -n argocd 8080:443`
+
and visiting `https://localhost:8080/`.

Then log in with the default `admin` username and password that you retrieved by running `kubectl get secret`.
4. Log in with the default `admin` username and the password that you retrieved by running `kubectl get secret`.

[.img_border_light]
image::/img/blog/configuration-drift-1.png[Argo Login,width=70%,align="center"]
Expand Down

0 comments on commit a5d3211

Please sign in to comment.