Giter Site home page Giter Site logo

mypacman's Introduction

Demonstrate multi resource application

Tool Requirements

  • OpenShift CLI Version >= 4.3.0
    Needed for kustomize
oc version

Summary

This provides a Pac-man application, where GitOps flows can be used to change the playing board from blue to green.

Prerequisite

  • 1+ managed-clusters
  • Those Managed-Cluster to target, must have a label with metadata.labels.usage: development
  • A fork of this repository

Application Console: Create a new subscription

Using the application console, you can easily create an Application that runs Pac-man on your cluster(s). You can then update the deployment, and change the image from latest to green, using a Git merge. This change will then be propogated to any subscribed clusters.

Console

  1. Open the Red Hat Advanced Cluster Management for Kubernetes console
  2. Navigate on the left navigation menu to Managed applications
  3. Choose Create application
  4. Enter the following values:
  • Name: pacman
  • Namespace: pacman
  • Repository types Git
  • URL https://github.com/REPO_FORK_NAME/application-samples.git
  • Branch main
  • Path pacman
  • Select Deploy application resources only on clusters matching specified labels
  • Label name usage
  • Label value development
  1. Click Save

Viewing

  • Navigate on the left navigation menu to Managed applications
  • Click the pacman Application name.
  • View the Topology
  • Click the Route nodes to obtain the Pac-man URL
  • Click the URL to see a Red Hat landing page with nginx version

Changing the background colour

  • In Github, using your fork of this repository, edit the ./pacman/deployment.yaml and change the image tag from latest to green
  • Commit your change
  • Within 60s the background of the Pac-man board will change to green (don't forget to refresh your browser)
  • The demo is ready to be run again

mypacman's People

Contributors

alfbach 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.