mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
59 lines
2.3 KiB
Plaintext
59 lines
2.3 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * configuring-an-openshift-cluster-with-argo-cd.adoc
|
|
// * depoying-an-application-with-argo-cd.adoc
|
|
|
|
ifeval::["{context}" == "configuring-an-openshift-cluster-by-deploying-an-application-with-cluster-configurations"]
|
|
:cluster:
|
|
endif::[]
|
|
ifeval::["{context}" == "deploying-a-spring-boot-application-with-argo-cd"]
|
|
:app:
|
|
endif::[]
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="creating-an-application-by-using-the-argo-cd-dashboard_{context}"]
|
|
= Creating an application by using the Argo CD dashboard
|
|
|
|
Argo CD provides a dashboard which allows you to create applications.
|
|
|
|
ifdef::cluster[]
|
|
This sample workflow walks you through the process of configuring Argo CD to recursively sync the content of the `cluster` directory to the `cluster-configs` application. The directory defines the {product-title} web console cluster configurations that add a link to the *Red Hat Developer Blog - Kubernetes* under the {rh-app-icon} menu in the web console, and defines a namespace `spring-petclinic` on the cluster.
|
|
endif::cluster[]
|
|
|
|
.Procedure
|
|
|
|
. In the Argo CD dashboard, click *NEW APP* to add a new Argo CD application.
|
|
|
|
ifdef::cluster[]
|
|
. For this workflow, create a *cluster-configs* application with the following configurations:
|
|
+
|
|
Application Name:: `cluster-configs`
|
|
Project:: `default`
|
|
Sync Policy:: `Manual`
|
|
Repository URL:: `https://github.com/redhat-developer/openshift-gitops-getting-started`
|
|
Revision:: `HEAD`
|
|
Path:: `cluster`
|
|
Destination:: `https://kubernetes.default.svc`
|
|
Namespace:: `spring-petclinic`
|
|
Directory Recurse:: `checked`
|
|
endif::cluster[]
|
|
|
|
ifdef::app[]
|
|
. For this workflow, create a *spring-petclinic* application with the following configurations:
|
|
+
|
|
Application Name:: `spring-petclinic`
|
|
Project:: `default`
|
|
Sync Policy:: `Automatic`
|
|
Repository URL:: `https://github.com/redhat-developer/openshift-gitops-getting-started`
|
|
Revision:: `HEAD`
|
|
Path:: `app`
|
|
Destination:: `https://kubernetes.default.svc`
|
|
Namespace:: `spring-petclinic`
|
|
endif::app[]
|
|
|
|
. Click *CREATE* to create your application.
|
|
|
|
. Open the *Administrator* perspective of the web console and navigate to *Administration* -> *Namespaces* in the menu on the left.
|
|
|
|
. Search for and select the namespace, then enter `argocd.argoproj.io/managed-by=openshift-gitops` in the *Label* field so that the Argo CD instance in the `openshift-gitops` namespace can manage your namespace.
|