Openshift Virtualization Demo running Elasticsearch on Mixed Pods (VMs and Containers)
- 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
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
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
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
- Create
- With Wizard
- [... menu] Migrate Node to Node
- [New VM] Overview
- Virtual Machine options
- Metrics
- Snapshots
- Create
- 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
- Show the mixed environment and dig into details
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)
- Log-in using
- Select elasticsearch route
- Verify
cluster_uuid
is populated - Append
/_cat/nodes
to elasticsearch url and verifycoordinate
is a member
- Verify
- Open kibana route to show connected web application
- In Kibana create a new discovery for the "generated" index with timestamp
- Select es-master00 Cockpit route
- Routes
- 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
- Configuration Maps mounted inside the VM
- Environment
- Migrate VM from Node to Node
- Take a Snapshot of the VM
- es-master00
- VirtualMachines