Installing GitOps Red Hat OpenShift GitOps 1.15 Installing the OpenShift GitOps Operator, logging in to the Argo CD instance, and installing the GitOps CLI Red Hat OpenShift Documentation Team

Commands:
edit argocd <name of argo cd> -n namespace
oc get argocd -n openshift-gitops openshift-gitops -o json | jq '.spec.redis.resources'
{ "limits": { 1 "cpu": "500m", "memory": "256Mi" }, "requests": { 2 "cpu": "250m", "memory": "128Mi" } }
oc patch argocd -n openshift-gitops openshift-gitops --type json -p '[{"op": "replace", "path": "/spec/redis/resources/limits/memory", "value": "8Gi"}, {"op": "replace", "path": "/spec/redis/resources/requests/memory", "value": "256Mi"}]'
argocd.argoproj.io/openshift-gitops patched
oc label namespace <namespace> openshift.io/cluster-monitoring=true
namespace/<namespace> labeled
oc create ns openshift-gitops-operator
namespace/openshift-gitops-operator created
oc label namespace <namespace> openshift.io/cluster-monitoring=true
namespace/<namespace> labeled
apiVersion: operators.coreos.com/v1 kind: OperatorGroup metadata: name: openshift-gitops-operator namespace: openshift-gitops-operator spec: upgradeStrategy: Default
oc apply -f gitops-operator-group.yaml
operatorgroup.operators.coreos.com/openshift-gitops-operator created
apiVersion: operators.coreos.com/v1alpha1 kind: Subscription metadata: name: openshift-gitops-operator namespace: openshift-gitops-operator spec: channel: latest 1 installPlanApproval: Automatic name: openshift-gitops-operator 2 source: redhat-operators 3 sourceNamespace: openshift-marketplace 4
oc apply -f openshift-gitops-sub.yaml
subscription.operators.coreos.com/openshift-gitops-operator created
oc get pods -n openshift-gitops
NAME READY STATUS RESTARTS AGE cluster-b5798d6f9-zr576 1/1 Running 0 65m openshift-gitops-application-controller-0 1/1 Running 0 53m openshift-gitops-applicationset-controller-6447b8dfdd-5ckgh 1/1 Running 0 65m openshift-gitops-dex-server-569b498bd9-vf6mr 1/1 Running 0 65m openshift-gitops-redis-74bd8d7d96-49bjf 1/1 Running 0 65m openshift-gitops-repo-server-c999f75d5-l4rsg 1/1 Running 0 65m openshift-gitops-server-5785f7668b-wj57t 1/1 Running 0 53m
oc get pods -n openshift-gitops-operator
NAME READY STATUS RESTARTS AGE openshift-gitops-operator-controller-manager-664966d547-vr4vb 2/2 Running 0 65m
tar xvzf <file>
sudo mv argocd /usr/local/bin/argocd
sudo chmod +x /usr/local/bin/argocd
argocd version --client
argocd: v2.9.5+f943664 BuildDate: 2024-02-15T05:19:27Z GitCommit: f9436641a616d277ab1f98694e5ce4c986d4ea05 GitTreeState: clean GoVersion: go1.20.10 Compiler: gc Platform: linux/amd64 ExtraBuildInfo: openshift-gitops-version: 1.12.0, release: 0015022024 1
subscription-manager register
subscription-manager refresh
subscription-manager list --available --matches '*gitops*'
subscription-manager attach --pool=<pool_id>
subscription-manager repos --enable="gitops-<gitops_version>-for-rhel-<rhel_version>-x86_64-rpms"
subscription-manager repos --enable="gitops-1.15-for-rhel-8-x86_64-rpms"
subscription-manager repos --enable="gitops-<gitops_version>-for-rhel-<rhel_version>-s390x-rpms"
subscription-manager repos --enable="gitops-1.15-for-rhel-8-s390x-rpms"
subscription-manager repos --enable="gitops-<gitops_version>-for-rhel-<rhel_version>-ppc64le-rpms"
subscription-manager repos --enable="gitops-1.15-for-rhel-8-ppc64le-rpms"
subscription-manager repos --enable="gitops-<gitops_version>-for-rhel-<rhel_version>-aarch64-rpms"
subscription-manager repos --enable="gitops-1.15-for-rhel-8-aarch64-rpms"
yum install openshift-gitops-argocd-cli
argocd version --client
argocd: v2.9.5+f943664 BuildDate: 2024-02-15T05:19:27Z GitCommit: f9436641a616d277ab1f98694e5ce4c986d4ea05 GitTreeState: clean GoVersion: go1.20.10 Compiler: gc Platform: linux/amd64 ExtraBuildInfo: openshift-gitops-version: 1.12.0, release: 0015022024 1
C:\> move argocd.exe <directory>
argocd version --client
argocd: v2.9.5+f943664 BuildDate: 2024-02-15T05:19:27Z GitCommit: f9436641a616d277ab1f98694e5ce4c986d4ea05 GitTreeState: clean GoVersion: go1.20.10 Compiler: gc Platform: linux/amd64 ExtraBuildInfo: openshift-gitops-version: 1.12.0, release: 0015022024 1
tar xvzf <file>
sudo mv argocd /usr/local/bin/argocd
sudo chmod +x /usr/local/bin/argocd
argocd version --client
argocd: v2.9.5+f943664 BuildDate: 2024-02-15T05:19:27Z GitCommit: f9436641a616d277ab1f98694e5ce4c986d4ea05 GitTreeState: clean GoVersion: go1.20.10 Compiler: gc Platform: linux/amd64 ExtraBuildInfo: openshift-gitops-version: 1.12.0, release: 0015022024 1