Deploy the Example Guestbook Application
Categories:
With Argo CD installed and running, you can create an application to deepen your understanding of its operations. This page provides the necessary commands with minimal explanation, as detailed information is available in the Argo CD documentation. Refer to the Create An Application From A Git Repository for more detailed instructions.
Create the Application
SSH into the Argo CD container c2d-argocd
:
c2
vagrant ssh c2d-argocd
Create the application using the Argo CD CLI:
kubens argocd
argocd login argocd.c2platform.org --username admin --password supersecret
argocd app create guestbook --repo https://github.com/argoproj/argocd-example-apps.git \
--path guestbook --dest-server https://kubernetes.default.svc --dest-namespace default
View Status and Sync (Deploy)
To view the application status, use:
argocd app get guestbook
Show me
Sync (deploy) the application using:
argocd app sync guestbook
Show me
Verify
Curl test
To verify the application is working, use curl
for a simple test:
kubens default
export GUESTBOOK_CLUSTER_IP="$(kubectl get svc guestbook-ui | grep 'guestbook-ui' | awk '{ print $3}')"
curl -s $GUESTBOOK_CLUSTER_IP | grep h2
This should return the text “Fancy Guestbook”.
Argo CD UI
Navigate to the Argo CD UI
https://argocd.c2platform.org
and log in using admin
with password supersecret
.
You should see the application created and synced, similar to the screenshot below.

Create the Application using the UI
If you want to deploy the demo application using the Argo CD UI, you can reset
your environment, assuming you created the v0
snapshot1, by restoring the snapshot:
vagrant snapshot restore c2d-argocd v0
SSH into c2d-argocd
and utilize k9s
2 to ensure all pods are running:
vagrant ssh c2d-argocd
k9s --all-namespaces
Refer to Creating Apps Via UI for more information on how to utilize the Argo CD UI to perform the same deployment.
Next Step
Now you are ready to proceed to more advanced deployment capabilities, such as canary deployments with Perform Canary Deployments using Argo Rollouts .
Additional Information
The creation of this snapshot was part of the first part of this tutorial, Install and Manage Argo CD with Ansible . ↩︎
Kubernetes command-line tools like
k9s
were installed by Ansible as part of the first part of this tutorial, Install and Manage Argo CD with Ansible . ↩︎
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.