Deploy an Application
After accessing Argo CD, to deploy an Application
:
- UI
- CLI
-
In the Argo CD UI, navigate to
Applications . -
Click on
+ NEW APP . -
Under
GENERAL ,-
set
Application Name tohelm-guestbook
. -
set
Project Name todefault
.
-
-
Under
SOURCE ,-
set
Repository URL tohttps://github.com/argoproj/argocd-example-apps
. -
Set
Path tohelm-guestbook
.
-
-
Under
DESTINATION , setCluster URL to your cluster URL.- The URL will be in the format
https://cluster-<cluster-name>:8001
, where<cluster-name>
is the name used connecting your Kubernetes cluster.
- The URL will be in the format
-
Set
Namespace todefault
. -
Click on
CREATE .
The helm-guestbook
Application
will be created but will not be synced automatically (because the sync policy was left to the default of Manual
).
-
Click on the
helm-guestbook
Application card, review the resources to be created in the cluster by clicking onAPP DIFF . -
Then click on
SYNC andSYNCHRONIZE .
-
Use the
argocd
CLI to create an Application namedhelm-guestbook
.argocd app create helm-guestbook \
--repo https://github.com/argoproj/argocd-example-apps.git \
--path helm-guestbook \
--dest-server https://cluster-<cluster-name>:8001 \
--dest-namespace default- In
dest-server
URL (https://cluster-<cluster-name>:8001
), replace<cluster-name>
with the name used when connecting your Kubernetes cluster.
- In
The helm-guestbook
Application
will be created but will not be synced automatically (because the sync policy was left to the default of Manual
).
-
Check the diff for the Application.
argocd app diff helm-guestbook
-
Sync the Application.
argocd app sync helm-guestbook