Skip to content

ibm-cloud-architecture/credit-solution-gitops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automation Decision Service Risk Scoring demo gitops

This GitOps repository defines the deployment of a simple risk scoring solution which includes

  • A Quarkus app to enter loan value, and is a client of the decision service
  • A ADS decision service to score the loan risk

Pre-requisites

We need to have:

  • OpenShift 4.7+

  • OpenShift GitOps operator deployed or use the command

    oc apply -k https://github.com/ibm-cloud-architecture/eda-gitops-catalog/openshift-gitops-operator/overlays/stable
  • OpenShift Pipelines operator deployed or use the command

    oc apply -k https://github.com/ibm-cloud-architecture/eda-gitops-catalog/openshift-pipelines-operator/overlays/

How this was set up

  • This GitOps repository was created with KAM with a command like
kam bootstrap \
--service-repo-url https://github.com/ibm-cloud-architecture/credit-origination-app \
--gitops-repo-url  https://github.com/ibm-cloud-architecture/ads-risk-scoring-gitops \
--image-repo quay.io/ibm-cloud-architecture/credit-origination-app \
--output ads-risk-scoring-gitops \
--prefix ads-risk-scoring --push-to-git=true \
--git-host-access-token <a-github-token> \
  • Then from the credit-origination-app , we moved the service, deployment and route declaration generated by the Quarkus OpenShift plugin to the environment/ads-risk-scoring-dev/apps/services/credit-origination-app/base/config folder as
├── 100-deployment.yaml
├── 200-service.yaml
├── 300-route.yaml
└── kustomization.yaml

Bootstrap the CI/CD

  • First define the ArgoCD Project named 'risk-scoring'

    oc project  openshift-gitops
    oc apply -f bootstrap/risk-scoring/argo-project.yaml

About

Bootstrapped GitOps Repository

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages