Initial Provisioning Overview
Overview
Once the prerequisite (see the prerequisites section) are completed, we’ll need to initialize the environment.
To initialize the environment, we’ll use Helmfile to install Argo CD, this enables us to complete this workshop by following the GitOps methodology.
Using Argo CD and a Kubernetes operator, we’ll provision a PostgreSQL database and a PostgreSQL operator.
Deploy Argo CD
Open the helmfile.yaml
file, there, make sure the kubeContext
is configured with the Kubernetes cluster you want to work with.
Next, install Argo-CD by executing:
helmfile apply
This will install the Argo-CD’s Helm chart with the values under:
./init-env/values/argo-cd/values.yaml
Forward traffic to Argo CD
Now that Argo CD is installed, we’ll need to forward traffic to the Argo CD service, so we could access its web UI.
To do that, we’ll use kubectl port-forward to forward traffic from localhost to the Argo CD (Kubernetes) service.
The following command will forward traffic from localhost at port 8080 to the argocd-server service at port 80:
kubectl -n argocd port-forward service/argo-cd-argocd-server 8080:80 &
Log in to Argo CD UI
In your browser, go to localhost:8080.
The default admin user name is admin
.
The password is stored in a Kubernetes secret which is generated during the initial deployment and it’s base64 encoded.
To retrieve and decode the password, execute:
printf "%s\n" $(kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" |base64 -d)
⚠️ Note
If you want to stop the port forwarding, execute:
kill %1
Last updated 26 Feb 2024, 22:53 +0200 .