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¶
- Go to Operators → OperatorHub
- Search for "Red Hat OpenShift GitOps"
- Click on the Red Hat OpenShift GitOps tile
- Click Install
- Keep default settings (install in
openshift-gitops-operatornamespace) - Click Install again
- 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:
- Click the + button in the top-right corner
- Paste the YAML above
- Click Create
Next Steps¶
Now that Argo CD is installed:
- Configure Argo CD - Set up user access and Git repositories
- Deploy with GitOps - Deploy applications using GitOps