Deploying the application via GitOps

Deploy the application(s) via GitOps

We are going to use OpenShift GitOps/ArgoCD to deploy the application in your namespace.

  • Access the ArgoCD Console by clicking on the link in the top right menu.

    05 open argocd
  • Click on "Log in via OpenShift" to log in with your credentials.

    05 login argocd openshift
    05 openshift login
  • Once logged in, you will be redirected to the ArgoCD Console. In the "Applications" tab, click on "Create Application".

    05 create application
  • On the top right corner of the panel that opened, click on "Edit as YAML".

    05 edit as yaml
  • Copy the content of the following text, paste it in the editor (replace the default content), then click on "Save".

    apiVersion: argoproj.io/v1alpha1
    kind: Application
    metadata:
      name: claim-insurance-app
    spec:
      destination:
        server: https://kubernetes.default.svc
        namespace: userX
      project: project-userX
      source:
        path: lab-materials/05/app
        repoURL: https://github.com/rh-aiservices-bu/parasol-insurance.git
        targetRevision: main-rhoai-2.13
      syncPolicy:
        automated:
          prune: true
          selfHeal: false
        syncOptions: [CreateNamespace=false]
    05 application yaml save
  • Back on the form view, click on "Create".

    05 create application validation
  • The Application will start deploying. You can click on the Card to see the details.

    05 application creation
  • After a few seconds, all the elements will be deployed, and the Application will report as "Healthy" and "Synced".

    05 application deployed
  • You can now access the application at the following URL: https://ic-app-userX.PLACEHOLDER-URL.com/

Open the the URL in your browser to access the application and head to the next step.