diff --git a/posts/2024-04-26-ArgoCD-Configuration-Drift.adoc b/posts/2024-04-26-ArgoCD-Configuration-Drift.adoc index 93b8026d1..eae79aae1 100644 --- a/posts/2024-04-26-ArgoCD-Configuration-Drift.adoc +++ b/posts/2024-04-26-ArgoCD-Configuration-Drift.adoc @@ -53,26 +53,27 @@ 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: + @@ -80,7 +81,7 @@ To access the ArgoCD UI: + 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"]