GithubHelp home page GithubHelp logo

bookinfo-gitops's Introduction

Bookinfo GitOps

Repository with the necessary to deploy Bookinfo using the Bookinfo Operator and the Bookinfo Helm Charts with a GitOps approach.

Deploy Bookinfo with Helm Charts

Prerequisites

  • Having ArgoCD installed in the cluster.
  • If using Service Mesh, having it installed in the cluster.

Procedure

NOTE: If you are not using bookinfo-charts as the namespace to deploy the app, and your ArgoCD instance is not in the openshift-gitops namespace. Change the namespaces where corresponding.

Create the namespace:

oc new-project bookinfo-charts

Add the ArgoCD label to the namespace for ArgoCD to be able to manage it:

oc label namespace bookinfo-charts argocd.argoproj.io/managed-by=openshift-gitops

Add the namespace to the Service Mesh

echo "apiVersion: maistra.io/v1
kind: ServiceMeshMember
metadata:
  name: default
  namespace: bookinfo-charts
spec:
  controlPlaneRef:
    name: basic
    namespace: istio-system" | oc apply -f -

Deploy the ArgoCD application:

oc apply -f argo/application-chart.yaml

Deploy Bookinfo with the Bookinfo Operator

Prerequisites

Procedure

NOTE: If you are not using bookinfo-operator-sample as the namespace to deploy the app, and your ArgoCD instance is not in the openshift-gitops namespace. Change the namespaces where corresponding.

Give ArgoCD the ability to deploy bookinfoes:

oc apply -f argo/clusterrole.yaml
oc adm policy add-cluster-role-to-user bookinfo-editor-role system:serviceaccount:openshift-gitops:openshift-gitops-argocd-application-controller

Create the namespace:

oc new-project bookinfo-operator-sample

Add the ArgoCD label to the namespace for ArgoCD to be able to manage it:

oc label namespace bookinfo-operator-sample argocd.argoproj.io/managed-by=openshift-gitops

Add the namespace to the Service Mesh

echo "apiVersion: maistra.io/v1
kind: ServiceMeshMember
metadata:
  name: default
  namespace: bookinfo-operator-sample
spec:
  controlPlaneRef:
    name: basic
    namespace: istio-system" | oc apply -f -

Deploy the ArgoCD application:

oc apply -f argo/application-operator.yaml

bookinfo-gitops's People

Contributors

ernesgonzalez33 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.