You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+41-1Lines changed: 41 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@ This repository contains a brief Getting Started guide for trying out OpenShift
8
8
*[Log into Argo CD dashboard](#log-into-argo-cd-dashboard)
9
9
*[Configure OpenShift with Argo CD](#configure-openshift-with-argo-cd)
10
10
*[Deploy Applications with Argo CD](#deploy-applications-with-argo-cd)
11
+
*[Additional Argo CD instances](#additional-argo-cd-instances)
11
12
12
13
## Install OpenShift GitOps
13
14
@@ -139,4 +140,43 @@ You would notice that the deployment momentarily scales up to 2 pods and immedia
139
140
140
141
In Argo CD dashboard, click on the **app-spring-petclinic** and then **App Details** → **Events**. You can see the event details of Argo CD detecting that the deployment resources is out of sync on the cluster and resyncing the Git repository to correct it.
141
142
142
-

143
+

144
+
145
+
146
+
## Additional Argo CD instances
147
+
148
+
Although OpenShift GitOps by default installs an Argo CD instance for the cluster, there are use-cases where different application teams might need their own Argo CD instance confined to their own namespaces and applications. Therefore, OpenShift GitOps support creating additional Argo CD instances declaratively through creating `ArgoCD` resources.
149
+
150
+
In the OpenShift Web Console, create a project called `myargocd` and then click on the plus sign in the top navigation bar to then paste the following in the YAML editor, and then click on **Create**.
151
+
152
+
```
153
+
apiVersion: argoproj.io/v1alpha1
154
+
kind: ArgoCD
155
+
metadata:
156
+
name: myargocd
157
+
spec:
158
+
server:
159
+
route:
160
+
enabled: true
161
+
```
162
+
163
+

164
+
165
+
> Alternatively, you can run the following CLI commands:
166
+
> ```
167
+
> oc new-project myargocd
168
+
> oc create -f argo/argocd.yaml
169
+
> ```
170
+
171
+
Click on the **Topology** to view the Argo CD instance deployed in your names.
172
+
173
+

174
+
175
+
Click on the Argo CD URL to open the Argo CD dashboard.
176
+
177
+
As described previously, Argo CD upon installation generates an initial admin password which is stored in a Kubernetes secret called `[argocd-name]-cluster`. Run the following command to decrypt the `admin` password and log into Argo CD dashboard:
178
+
179
+
```
180
+
kubectl get secret myargocd-cluster -n myargocd -ojsonpath='{.data.admin\.password}' | base64 -d
0 commit comments