Skip to content

Commit 89feda0

Browse files
authored
Merge pull request #46559 from DebarghoGhosh/setting-up-argo-cd-instance-3824
RHDEVDOCS-3824 - Added setting up argo cd instance
2 parents 62d0789 + 592b064 commit 89feda0

File tree

5 files changed

+101
-0
lines changed

5 files changed

+101
-0
lines changed

_topic_maps/_topic_map.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1624,6 +1624,8 @@ Topics:
16241624
File: installing-openshift-gitops
16251625
- Name: Uninstalling OpenShift GitOps
16261626
File: uninstalling-openshift-gitops
1627+
- Name: Setting up a new Argo CD instance
1628+
File: setting-up-argocd-instance
16271629
- Name: Configuring an OpenShift cluster by deploying an application with cluster configurations
16281630
File: configuring-an-openshift-cluster-by-deploying-an-application-with-cluster-configurations
16291631
- Name: Deploying a Spring Boot application with Argo CD
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
:_content-type: ASSEMBLY
2+
[id="setting-up-argocd-instance"]
3+
= Setting up a new Argo CD instance
4+
include::_attributes/common-attributes.adoc[]
5+
:context: setting-up-argocd-instance
6+
7+
toc::[]
8+
9+
By default, the {gitops-title} installs an instance of Argo CD in the `openshift-gitops` namespace with additional permissions for managing certain cluster-scoped resources. To manage cluster configurations or deploy applications, you can install and deploy a new Argo CD instance. By default, any new instance has permissions to manage resources only in the namespace where it is deployed.
10+
11+
include::modules/gitops-argo-cd-installation.adoc[leveloffset=+1]
12+
13+
include::modules/gitops-enable-replicas-for-argo-cd-server.adoc[leveloffset=+1]
14+
15+
include::modules/gitops-deploy-resources-different-namespaces.adoc[leveloffset=+1]
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * gitops-argo-cd-installation.adoc
4+
5+
:_content-type: PROCEDURE
6+
[id="gitops-argo-cd-installation_{context}"]
7+
= Installing Argo CD
8+
9+
To manage cluster configurations or deploy applications, you can install and deploy a new Argo CD instance.
10+
11+
.Procedure
12+
. Log in to the {product-title} web console.
13+
14+
. Click *Operators* -> *Installed Operators*.
15+
16+
. Create or select the project where you want to install the Argo CD instance from the *Project* drop-down menu.
17+
18+
. Select *Openshift GitOps Operator* from the installed operators and select the *Argo CD* tab.
19+
20+
. Click *Create* to configure the following parameters:
21+
22+
.. For *Name*, enter `/`.
23+
24+
.. Create an external OS Route to access Argo CD server. Click *Server* -> *Route* and, for *Enable Route*, select *true*.
25+
26+
. To open the Argo CD web UI, click the route that is created in the project where the Argo CD instance is installed.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * gitops-argo-cd-installation.adoc
4+
5+
:_content-type: PROCEDURE
6+
[id="gitops-deploy-resources-different-namespaces_{context}"]
7+
= Deploying resources to a different namespace
8+
9+
To allow Argo CD to manage resources in other namespaces apart from where it is installed, configure the target namespace with a `argocd.argoproj.io/managed-by` label.
10+
11+
.Procedure
12+
13+
* Configure the namespace:
14+
+
15+
[source,terminal]
16+
----
17+
$ oc label namespace <namespace> && \
18+
argocd.argoproj.io/managed-by=<instance_name> <1>
19+
----
20+
<1> The namespace where Argo CD is installed.
21+
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * gitops-argo-cd-installation.adoc
4+
5+
:_content-type: PROCEDURE
6+
[id="gitops-enable-replicas-for-argo-cd-server_{context}"]
7+
= Enabling replicas for Argo CD server and repo server
8+
9+
Argo CD-server and Argo CD-repo-server workloads are stateless. To better distribute your workloads among pods, you can increase the number of Argo CD-server and Argo CD-repo-server replicas. However, if a horizontal autoscaler is enabled on the Argo CD-server, it overrides the number of replicas you set.
10+
11+
.Procedure
12+
13+
* Set the `replicas` parameters for the `repo` and `server` spec to the number of replicas you want to run:
14+
+
15+
.Example Argo CD custom resource
16+
17+
[source,yaml]
18+
----
19+
apiVersion: argoproj.io/v1alpha1
20+
kind: ArgoCD
21+
metadata:
22+
name: example-argocd
23+
labels:
24+
example: repo
25+
spec:
26+
repo:
27+
replicas: <number_of_replicas>
28+
server:
29+
replicas: <number_of_replicas>
30+
route:
31+
enabled: true
32+
path: /
33+
tls:
34+
insecureEdgeTerminationPolicy: Redirect
35+
termination: passthrough
36+
wildcardPolicy: None
37+
----

0 commit comments

Comments
 (0)