Coder Social home page Coder Social logo

purefield / ocp-virt Goto Github PK

View Code? Open in Web Editor NEW
16.0 8.0 13.0 624 KB

Openshift Virtualization Demo running Elasticsearch on mixed nodes (vm and containers)

Shell 40.10% Dockerfile 1.50% JavaScript 20.50% HTML 10.95% Java 24.93% NewLisp 2.03%

ocp-virt's Introduction

Openshift Virtualization Demo running Elasticsearch on Mixed Pods (VMs and Containers)

Elasticsearch Cluster Overview

Dependencies:

  • OpenShift Baremetal cluster with ODF
    • for instance: demo.redhat.com - Hands on with Openshift Virtualization
    • ODF is default storage class set and profile applied
  • Installed Operators
    • OpenShift Virtualization Operator
    • Cert Utils Operator
  • RHEL Subscription Activation Keys (for Pod software installation)
    • Subscription Org
    • Subscription Key

Setup

NOTE: Setup is ran from the desired bastion host for the OCP cluster(s)

sudo dnf install -y git
git clone https://github.com/purefield/opc-virt.git ~/demo
cd ~/demo/
./setup.sh

Demo Prep

Log into the OpenShift Cluster

Run the demo script from the same bastion to create a fresh elasticsearch cluster in a new namespace (first argument or prompt, defaults to last namespace used or next-gen-virt)

cd elasticsearch/
./generate-yaml.sh next-gen-virt
oc apply -f next-gen-virt.yaml

Wait for installation (approximately 4 mins in normal circumstances)

Once the VMs are running, execute:

watch --color ./demo.sh

Demo Highlights

Under Administrator Perspective:

  • Operators -> OperatorHub
    • OpenShift Virtualization Operator (installed)
    • Migration Toolkit for Virtualization Operator (available)
  • Virtualization
    • Overview
    • Templates
    • DataStore (RWX)
    • Catalog
    • VirtualMachines
      • Create
        • With Wizard
          • Create
            • Select Red Hat Enterprise Linux 9.0 VM
            • Next
              • Create virtual machine
      • [... menu] Migrate Node to Node
      • [New VM] Overview
        • Virtual Machine options
        • Metrics
        • Snapshots
  • Run demo steps
    • Pick random/suggested name for namespace to pass as first argument or when prompted
    • Execute generate and apply steps in shared terminal window showing VirtualMachines screen in the background

Under the Developer Perspective:

  • Topology
    • Show the mixed environment and dig into details
      • 3 Elasticsearch VMs for data and control plane
      • 1 Elasticsearch container as coordinator node
      • 1 Kibana container for data visualization
      • 1 RHEL 9 container for data generation
      • 1 RHEL 9 container for utilities to explore with ssh keys to the VMs

Under Administrator Perspective:

  • Networking
    • Routes
      • Select es-master00 Cockpit route
        • Log-in using elasticsearch:redhat
          • View services and search for elasticsearch (will appear when ready)
      • Select elasticsearch route
        • Verify cluster_uuid is populated
        • Append /_cat/nodes to elasticsearch url and verify coordinate is a member
      • Open kibana route to show connected web application
        • In Kibana create a new discovery for the "generated" index with timestamp
  • Virtualization
    • VirtualMachines
      • es-master00
        • Environment
          • Configuration Maps mounted inside the VM
            • 00yaml - Elasticsearch Node specific configuration
            • 0000sh - Multiple scripts used during VM installation
          • Secret mounted inside the VM
            • 00cert - Let's Encrypt SSL Certificate private key and chain used by the VMs
      • Migrate VM from Node to Node
      • Take a Snapshot of the VM

ocp-virt's People

Contributors

awels avatar duboyd avatar purefield avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ocp-virt's Issues

README Cleanup

Cleanup the README to be a little more descriptive for the lowest level of OCP knowledge/understanding.

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.