Giter VIP home page Giter VIP logo

mcm-git-sample's Introduction

Installing MCM App using GitHub Channel in IBM Cloud Pak for Multicloud Management Version 1.3.0

1. Installation Steps

  1. Download this project from git

  2. Change the below values according to your cluster in the file /src/03-subscription/21-placement.yaml.

  clusterLabels:
    matchExpressions:
      - key: name
        operator: In
        values:
          - ocp43-mcm-gan-a
  1. Goto install folder in command prompt

  2. Set kubetcl context in command prompt that points to your mcm hub.

  3. Run the below command.

sh 01-install.sh

2. Accessing the installed application

The application get installed in the mcm hub.

  1. Login into the managed cluster with oc login command

  2. Run the below command to find the routes installed.

oc get route -n gstore-git-app-ns

It may result like the below.

NAME           HOST/PORT                                                                                                                 PATH   SERVICES       PORT      TERMINATION   WILDCARD
gstore-sales   gstore-sales-gstore-git-app-ns.ocp43-mcm-gan-a-.appdomain.cloud   /      gstore-sales   my-http                 None

  1. Copy the route from the above output and open the url in the browser.

ex:

http://gstore-sales-gstore-git-app-ns.ocp43-mcm-gan-a-.appdomain.cloud

3. Viewing App Topology

The deployed application would be like this in MCM Hub console.


4. Application resources Yaml files explained

Here is some details regarding yaml files used in the application located under src folder.

Channel

Placeholder for the Deployable yaml files. Here it is pointing to github repo. (To this same repo)

Application

To group the components

Placementrule

To define the target cluster

Subscription

To bind the channel with the placement rule.

Also it specifies the sub path of the deployables under the github repo referred by the channel. Here repo/gstoresales is the path.

Namespace

Namespaces to deploy the app, channel and subscriptions.

Git repo sub path

The git repo sub path where the deployables are stored.

Deployment

Kubernetes resource Deployment

Service

Kubernetes resource Service

Route

Openshift resource Route

mcm-git-sample's People

Contributors

gandhicloudlab avatar

Watchers

James Cloos avatar  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.