mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
59 lines
1.9 KiB
Plaintext
59 lines
1.9 KiB
Plaintext
// Module included in the following assembly:
|
|
//
|
|
// * gitops/configuring_argo_cd_to_recursively_sync_a_git_repository_with_your_application/configuring-an-openshift-cluster-by-deploying-an-application-with-cluster-configurations.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="run-argo-cd-instance-on-cluster_{context}"]
|
|
|
|
= Running the Argo CD instance at the cluster-level
|
|
|
|
The default Argo CD instance and the accompanying controllers, installed by the {gitops-title} Operator, can now run on the infrastructure nodes of the cluster by setting a simple configuration toggle.
|
|
|
|
|
|
.Procedure
|
|
. Label the existing nodes:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc label node <node-name> node-role.kubernetes.io/infra=""
|
|
----
|
|
+
|
|
. Optional: If required, you can also apply taints and isolate the workloads on infrastructure nodes and prevent other workloads from scheduling on these nodes:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc adm taint nodes -l node-role.kubernetes.io/infra \
|
|
infra=reserved:NoSchedule infra=reserved:NoExecute
|
|
----
|
|
. Add the `runOnInfra` toggle in the `GitOpsService` custom resource:
|
|
+
|
|
[source,yaml]
|
|
----
|
|
apiVersion: pipelines.openshift.io/v1alpha1
|
|
kind: GitopsService
|
|
metadata:
|
|
name: cluster
|
|
spec:
|
|
runOnInfra: true
|
|
----
|
|
. Optional: If taints have been added to the nodes, then add `tolerations` to the `GitOpsService` custom resource, for example:
|
|
+
|
|
[source,yaml]
|
|
----
|
|
spec:
|
|
runOnInfra: true
|
|
tolerations:
|
|
- effect: NoSchedule
|
|
key: infra
|
|
value: reserved
|
|
- effect: NoExecute
|
|
key: infra
|
|
value: reserved
|
|
----
|
|
. Verify that the workloads in the `openshift-gitops` namespace are now scheduled on the infrastructure nodes by viewing *Pods* -> *Pod details* for any pod in the console UI.
|
|
|
|
[NOTE]
|
|
====
|
|
Any `nodeSelectors` and `tolerations` manually added to the default Argo CD custom resource are overwritten by the toggle and `tolerations` in the `GitOpsService` custom resource.
|
|
====
|