Application deployment using OpenShift Pipelines and GitOps
This time, we are going to use ArgoCD to deploy the application instead of directly running the Kubernetes manifests. The pipeline is basically the same, but now the deploy task will run a YAML file that creates an ArgoCD application and wait until the application becomes healthy.
Figure 14.11 – Pipeline to build a Java Quarkus application and deploy it using ArgoCD
Run the following command to create and run the pipeline:
$ cd OpenShift-Multi-Cluster-Management-Handbook/chapter14/Deploy $ oc apply -f Rolebindings/ # Permission required for Tekton to create an ArgoCD application $ oc apply -f Pipeline/quarkus-build-and-deploy-pi.yaml $ oc create -f PipelineRun/quarkus-build-and-deploy-pr.yaml
A new PipelineRun
will be created to build the container image and create the ArgoCD application that will deploy the application. You will see the following if everything works well:
...