Giter VIP home page Giter VIP logo

2019-demo4-cluster-setup's Introduction

RH Summit 2019 Demo 4 Cluster Setup

This repo contains all scripts to prepare an OpenShift 4 cluster to run Demo 4. If you do not have a running OCP4 cluster, you can use these instructions to provision one in a nominated AWS account.

Setup

Create a .env file with all the required environment variables. An example env file .env.example is included.

cp .env.example .env

Test that you can login to the server with

make oc_login

Adding scripts

Just create a sub directory, add a shell script and resource files and execute them via the Makefile. Note that the commands in a Makefile have to be indented by tabs. Also add a short description to this README.md

Knative

To install all Knative components (build, serving, and eventing) and its required Istio, run

make install_knative

For the most part, it should be idempotent, i.e. it won't install OLM or Istio if their respective namespaces already exist. It will re-apply the knative operator resources, but as long as they haven't changed, OLM shouldn't care.

Deloying Infinispan/Datagrid

To deploy datagrid to the datagrid-demo project:

make datagrid

Strimzi and Apache Kafka

The Apache Kafka related deployment is made by:

  • The Strimzi operators, starting from the Cluster operator to the Topic and User operators
  • The Apache Kafka cluster deployment (alongside with a Zookeeper cluster)
  • The console server component and the related AMQ Streams Topic Web UI
  • The monitoring infrastructure made by Prometheus, the related alert manager and Grafana with Kafka and Zookeeper dashboards

To deploy the Apache Kafka infrastructure:

make kafka

Front End Applications and Socket Servers

To configure an admin password, set the ADMIN_PASSWORD in the .env file. To configure the training application, set the appropriate s3 environment variables for your s3 bucket as shown in the .env.example. Leaving the s3 variables will run the frontend without saving the training data to s3.

make frontend

Syndesis

To install all Syndesis components, run:

make syndesis

Camel K

To install all Camel K components, run:

make camel-k

Open Data Hub

To create an ODH Developer Catalog entry and install the ODH operator in the namespace "opendatahub" run:

make opendatahub

If you want Open Data Hub to show up in the Developer Catalog for additional (or all) namespaces, you need to modify the file opendatahub/opendatahub-operator.operatorgroup.yaml to include each namespace you want it to appear in (or for all namespaces, remove the .spec dictionary from the yaml)

NOTE: Deploying from the catalog will only work in the opendatahub namespace since the operator will already be deployed

Sample Demo Deployments

OptaPlanner Demo

To demonstrate OptaPlanner with the dashboard and admin screens with a smaller resource requirement, we can skip several portions of the demo. Using the environment file similar to the following:

# oc_login
OC=~/bin/oc
OC_URL=https://openshift-host:8443
OC_USER=admin
OC_PASSWORD=admin

# Datagrid
DATAGRID_INSTANCES=1
DATAGRID_CPU=1000m
DATAGRID_MEMORY=2048Mi

# OptaPlanner
OPTAPLANNER_REQUEST_CPU=1000m
OPTAPLANNER_REQUEST_MEMORY=1000Mi
OPTAPLANNER_LIMIT_CPU=2000m
OPTAPLANNER_LIMIT_MEMORY=4000Mi

# Frontend
FRONTEND_MINI=true
FRONTEND_SKIP_MOBILE=true

Then execute the make instructions ton install the required components (datagrid, optaplanner, and frontend):

make datagrid optaplanner frontend

After deployment and all pods are up and running, you should be able to interact with the demo:

Dashboard UI: http://dashboard-web-game-demo.cluster-host

Admin UI: http://admin-web-game-demo.cluster-host (blank password unless ADMIN_PASSWORD was set in the .env file)

In the Admin UI, you can access the OptaPlanner functionality in the OptaPlanner section including play/pause the game, damage simulation, and add/remove/pause/unpause mechanics.

2019-demo4-cluster-setup's People

Contributors

bbrowning avatar brizrobbo avatar cfchase avatar chirino avatar durandom avatar galderz avatar jcrossley3 avatar landocalrizzian avatar lavlas avatar lburgazzoli avatar nicolaferraro avatar ppatierno avatar rsynek avatar ryanemerson avatar stuartwdouglas avatar vpavlin avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

2019-demo4-cluster-setup's Issues

Disable topics auto creation

We have to disable auto topics auto creation on the deployed cluster with auto.create.topics.enable set to false.

missing kafka/strimzi directory

When running the kafka/01-deploy-strimzi.sh script, I'm getting errors about unable to find files in the strimzi directory.
If I copy the strimzi directory from the checkout for 2019-demo4-strimzi-kafka, I can then run the 01-deploy-strimzi.sh script in this 2019-demo4-cluster-setup directory.

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.