Skip to content

Install Argo CD

Argo CD enables GitOps-based application deployments in your OpenShift cluster. This guide shows you how to install Argo CD using the Red Hat OpenShift GitOps Operator.

Prerequisites

  • OpenShift cluster with cluster-admin access

Install OpenShift GitOps Operator

Via OpenShift Console

  1. Go to OperatorsOperatorHub
  2. Search for "Red Hat OpenShift GitOps"
  3. Click on the Red Hat OpenShift GitOps tile
  4. Click Install
  5. Keep default settings (install in openshift-gitops-operator namespace)
  6. Click Install again
  7. Wait for the installation to complete (this may take a minute or two)

Grant Cluster Admin Permissions

Grant cluster-admin permissions to allow ArgoCD to create namespaces and manage cluster resources:

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: argocd-application-controller-cluster-admin
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: cluster-admin
subjects:
- kind: ServiceAccount
  name: openshift-gitops-argocd-application-controller
  namespace: openshift-gitops

Apply the configuration using the import YAML feature in OpenShift Console:

  1. Click the + button in the top-right corner
  2. Paste the YAML above
  3. Click Create

Next Steps

Now that Argo CD is installed: