# caseraw/openshiftdemotime architecture

> Architecture diagram of the GitHub repository caseraw/openshiftdemotime, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-24). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/caseraw/openshiftdemotime
- Repository: https://github.com/caseraw/openshiftdemotime

## Overview

OpenShift Demo Time is a repository of staged OpenShift demonstration and proof-of-concept environments, plus reusable setup components. The documented user workflow is to choose a scenario under `scenarios/`, read its scenario details, and run its bootstrap script(s) to set up the environment. Scenarios cover cluster services, multicluster management, workloads, networking, observability, scaling, and resilience. Shared component scripts and Kustomize resources provide reusable setup material. Source excerpts show a few workload internals, including contacts API persistence and a metrics demo; most scenario wiring is unsampled, so those links are omitted rather than inferred.

Main entry points: [`scenarios`](https://github.com/caseraw/openshiftdemotime/tree/main/scenarios) (Scenario bootstraps), [`scenarios/uc16-workload-scalability/keda`](https://github.com/caseraw/openshiftdemotime/tree/main/scenarios/uc16-workload-scalability/keda) (Counter database), [`scenarios/uc16-workload-scalability/keda/app/index.php`](https://github.com/caseraw/openshiftdemotime/blob/main/scenarios/uc16-workload-scalability/keda/app/index.php) (KEDA counter app), [`scenarios/uc19-network-graphs/mini-contacts/api/app/main.py`](https://github.com/caseraw/openshiftdemotime/blob/main/scenarios/uc19-network-graphs/mini-contacts/api/app/main.py) (Contacts API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_scenario_setup["Scenario setup"]
  node_scenario_guides["Scenario details<br/>[README.md]"]
  node_scenario_bootstrap["Scenario bootstraps"]
  node_cow_stages["Cloud on Wheels"]
  node_hybrid_demo["Hybrid workload demo"]
  node_cluster_service_demos["Cluster service demos"]
  node_security_network_demos["Security and network demos"]
  node_scaling_resilience_demos["Scaling and resilience demos"]
end

subgraph group_shared_components["Shared components"]
  node_component_scripts["Component setup scripts"]
  node_credential_setup["Credential setup"]
  node_kustomize_assets["Reusable manifests"]
end

subgraph group_workload_demos["Workload demos"]
  node_contacts_frontend["Contacts frontend<br/>[server.js]"]
  node_contacts_api["Contacts API<br/>[main.py]"]
  node_contacts_db_layer["Contacts DB layer<br/>[db.py]"]
  node_contacts_postgres[("Contacts database")]
  node_podinfo_demo["Pod metrics demo<br/>[app.py]"]
  node_keda_counter["KEDA counter app<br/>[index.php]"]
  node_keda_config["Counter initialization<br/>[config.php]"]
  node_keda_reset["Counter reset<br/>[reset.php]"]
  node_keda_mysql[("Counter database")]
  node_container_service["Container greeting service"]
  node_podspot_frontend["Pod spot frontend<br/>[server.js]"]
  node_podspot_backend["Pod status API<br/>[app.py]"]
end

subgraph group_cluster_capabilities["Cluster capabilities"]
  node_cluster_management["Multicluster management<br/>[setup.sh]"]
  node_gitops_pipelines["GitOps and pipelines<br/>[setup.sh]"]
  node_observability_storage["Logging and storage"]
  node_virtualization_serverless["Virtualization and serverless"]
end

node_demo_user(("Demo operator"))
node_openshift_cluster{{"OpenShift environment"}}

node_demo_user -->|"reads details"| node_scenario_guides
node_demo_user -->|"runs scripts"| node_scenario_bootstrap
node_scenario_bootstrap -.->|"sets up environment"| node_openshift_cluster
node_demo_user -.->|"provides credentials"| node_credential_setup
node_component_scripts -.->|"configures services"| node_openshift_cluster
node_kustomize_assets -.->|"supplies manifests"| node_openshift_cluster
node_scenario_bootstrap -.->|"includes stages"| node_cow_stages
node_scenario_bootstrap -->|"includes demo"| node_hybrid_demo
node_scenario_bootstrap -.->|"covers scenarios"| node_cluster_service_demos
node_scenario_bootstrap -.->|"covers scenarios"| node_security_network_demos
node_scenario_bootstrap -.->|"covers scenarios"| node_scaling_resilience_demos
node_contacts_frontend -->|"proxies requests"| node_contacts_api
node_contacts_api -->|"calls queries"| node_contacts_db_layer
node_contacts_db_layer -->|"queries database"| node_contacts_postgres
node_keda_counter -->|"loads configuration"| node_keda_config
node_keda_counter -.->|"updates counter"| node_keda_mysql
node_keda_config -.->|"initializes table"| node_keda_mysql
node_keda_reset -.->|"resets counter"| node_keda_mysql
node_podspot_frontend -.->|"uses backend URL"| node_podspot_backend
node_podinfo_demo -.->|"exposes demo endpoint"| node_openshift_cluster
node_container_service -.->|"serves greeting"| node_openshift_cluster
node_cluster_management -.->|"installs management"| node_openshift_cluster
node_gitops_pipelines -.->|"installs tooling"| node_openshift_cluster
node_observability_storage -.->|"configures services"| node_openshift_cluster
node_virtualization_serverless -.->|"configures services"| node_openshift_cluster

click node_scenario_guides "https://github.com/caseraw/openshiftdemotime/blob/main/scenarios/README.md"
click node_scenario_bootstrap "https://github.com/caseraw/openshiftdemotime/tree/main/scenarios"
click node_cow_stages "https://github.com/caseraw/openshiftdemotime/tree/main/scenarios/cloud-on-wheels"
click node_hybrid_demo "https://github.com/caseraw/openshiftdemotime/tree/main/scenarios/demo-rhacm-hybrid-workload"
click node_cluster_service_demos "https://github.com/caseraw/openshiftdemotime/tree/main/scenarios"
click node_security_network_demos "https://github.com/caseraw/openshiftdemotime/tree/main/scenarios"
click node_scaling_resilience_demos "https://github.com/caseraw/openshiftdemotime/tree/main/scenarios"
click node_component_scripts "https://github.com/caseraw/openshiftdemotime/tree/main/assets/components"
click node_credential_setup "https://github.com/caseraw/openshiftdemotime/tree/main/assets/byo"
click node_kustomize_assets "https://github.com/caseraw/openshiftdemotime/tree/main/assets/kustomize"
click node_contacts_frontend "https://github.com/caseraw/openshiftdemotime/blob/main/scenarios/uc19-network-graphs/mini-contacts/frontend/server.js"
click node_contacts_api "https://github.com/caseraw/openshiftdemotime/blob/main/scenarios/uc19-network-graphs/mini-contacts/api/app/main.py"
click node_contacts_db_layer "https://github.com/caseraw/openshiftdemotime/blob/main/scenarios/uc19-network-graphs/mini-contacts/api/app/db.py"
click node_contacts_postgres "https://github.com/caseraw/openshiftdemotime/tree/main/scenarios/uc19-network-graphs/mini-contacts"
click node_podinfo_demo "https://github.com/caseraw/openshiftdemotime/blob/main/scenarios/uc18-metrics-and-logs/podinfo/app.py"
click node_keda_counter "https://github.com/caseraw/openshiftdemotime/blob/main/scenarios/uc16-workload-scalability/keda/app/index.php"
click node_keda_config "https://github.com/caseraw/openshiftdemotime/blob/main/scenarios/uc16-workload-scalability/keda/app/config.php"
click node_keda_reset "https://github.com/caseraw/openshiftdemotime/blob/main/scenarios/uc16-workload-scalability/keda/app/reset.php"
click node_keda_mysql "https://github.com/caseraw/openshiftdemotime/tree/main/scenarios/uc16-workload-scalability/keda"
click node_container_service "https://github.com/caseraw/openshiftdemotime/blob/main/scenarios/uc04-container-as-a-service/app/src/main/java/org/acme/GreetingResource.java"
click node_podspot_frontend "https://github.com/caseraw/openshiftdemotime/blob/main/scenarios/uc22-cluster-upgrade/frontend-pod-spot/server.js"
click node_podspot_backend "https://github.com/caseraw/openshiftdemotime/blob/main/scenarios/uc22-cluster-upgrade/backend-pod-spot/app.py"
click node_cluster_management "https://github.com/caseraw/openshiftdemotime/blob/main/assets/components/openshift-rhacm-operator/setup.sh"
click node_gitops_pipelines "https://github.com/caseraw/openshiftdemotime/blob/main/assets/components/openshift-gitops/setup.sh"
click node_observability_storage "https://github.com/caseraw/openshiftdemotime/tree/main/assets/components"
click node_virtualization_serverless "https://github.com/caseraw/openshiftdemotime/tree/main/assets/components"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_scenario_guides,node_scenario_bootstrap,node_cow_stages,node_hybrid_demo,node_cluster_service_demos,node_security_network_demos,node_scaling_resilience_demos toneBlue
class node_component_scripts,node_credential_setup,node_kustomize_assets toneAmber
class node_contacts_frontend,node_contacts_api,node_contacts_db_layer,node_contacts_postgres,node_podinfo_demo,node_keda_counter,node_keda_config,node_keda_reset,node_keda_mysql,node_container_service,node_podspot_frontend,node_podspot_backend toneMint
class node_cluster_management,node_gitops_pipelines,node_observability_storage,node_virtualization_serverless toneRose
class node_demo_user,node_openshift_cluster toneIndigo
```

## Components

### Scenario setup

- [Scenario details](https://github.com/caseraw/openshiftdemotime/blob/main/scenarios/README.md): `scenarios/README.md`
- [Scenario bootstraps](https://github.com/caseraw/openshiftdemotime/tree/main/scenarios): `scenarios`
- [Cloud on Wheels](https://github.com/caseraw/openshiftdemotime/tree/main/scenarios/cloud-on-wheels): `scenarios/cloud-on-wheels`
- [Hybrid workload demo](https://github.com/caseraw/openshiftdemotime/tree/main/scenarios/demo-rhacm-hybrid-workload): `scenarios/demo-rhacm-hybrid-workload`
- [Cluster service demos](https://github.com/caseraw/openshiftdemotime/tree/main/scenarios): `scenarios`
- [Security and network demos](https://github.com/caseraw/openshiftdemotime/tree/main/scenarios): `scenarios`
- [Scaling and resilience demos](https://github.com/caseraw/openshiftdemotime/tree/main/scenarios): `scenarios`

### Shared components

- [Component setup scripts](https://github.com/caseraw/openshiftdemotime/tree/main/assets/components): `assets/components`
- [Credential setup](https://github.com/caseraw/openshiftdemotime/tree/main/assets/byo): `assets/byo`
- [Reusable manifests](https://github.com/caseraw/openshiftdemotime/tree/main/assets/kustomize): `assets/kustomize`

### Workload demos

- [Contacts frontend](https://github.com/caseraw/openshiftdemotime/blob/main/scenarios/uc19-network-graphs/mini-contacts/frontend/server.js): `scenarios/uc19-network-graphs/mini-contacts/frontend/server.js`
- [Contacts API](https://github.com/caseraw/openshiftdemotime/blob/main/scenarios/uc19-network-graphs/mini-contacts/api/app/main.py): `scenarios/uc19-network-graphs/mini-contacts/api/app/main.py`
- [Contacts DB layer](https://github.com/caseraw/openshiftdemotime/blob/main/scenarios/uc19-network-graphs/mini-contacts/api/app/db.py): `scenarios/uc19-network-graphs/mini-contacts/api/app/db.py`
- [Contacts database](https://github.com/caseraw/openshiftdemotime/tree/main/scenarios/uc19-network-graphs/mini-contacts): `scenarios/uc19-network-graphs/mini-contacts`
- [Pod metrics demo](https://github.com/caseraw/openshiftdemotime/blob/main/scenarios/uc18-metrics-and-logs/podinfo/app.py): `scenarios/uc18-metrics-and-logs/podinfo/app.py`
- [KEDA counter app](https://github.com/caseraw/openshiftdemotime/blob/main/scenarios/uc16-workload-scalability/keda/app/index.php): `scenarios/uc16-workload-scalability/keda/app/index.php`
- [Counter initialization](https://github.com/caseraw/openshiftdemotime/blob/main/scenarios/uc16-workload-scalability/keda/app/config.php): `scenarios/uc16-workload-scalability/keda/app/config.php`
- [Counter reset](https://github.com/caseraw/openshiftdemotime/blob/main/scenarios/uc16-workload-scalability/keda/app/reset.php): `scenarios/uc16-workload-scalability/keda/app/reset.php`
- [Counter database](https://github.com/caseraw/openshiftdemotime/tree/main/scenarios/uc16-workload-scalability/keda): `scenarios/uc16-workload-scalability/keda`
- [Container greeting service](https://github.com/caseraw/openshiftdemotime/blob/main/scenarios/uc04-container-as-a-service/app/src/main/java/org/acme/GreetingResource.java): `scenarios/uc04-container-as-a-service/app/src/main/java/org/acme/GreetingResource.java`
- [Pod spot frontend](https://github.com/caseraw/openshiftdemotime/blob/main/scenarios/uc22-cluster-upgrade/frontend-pod-spot/server.js): `scenarios/uc22-cluster-upgrade/frontend-pod-spot/server.js`
- [Pod status API](https://github.com/caseraw/openshiftdemotime/blob/main/scenarios/uc22-cluster-upgrade/backend-pod-spot/app.py): `scenarios/uc22-cluster-upgrade/backend-pod-spot/app.py`

### Cluster capabilities

- [Multicluster management](https://github.com/caseraw/openshiftdemotime/blob/main/assets/components/openshift-rhacm-operator/setup.sh): `assets/components/openshift-rhacm-operator/setup.sh`
- [GitOps and pipelines](https://github.com/caseraw/openshiftdemotime/blob/main/assets/components/openshift-gitops/setup.sh): `assets/components/openshift-gitops/setup.sh`
- [Logging and storage](https://github.com/caseraw/openshiftdemotime/tree/main/assets/components): `assets/components`
- [Virtualization and serverless](https://github.com/caseraw/openshiftdemotime/tree/main/assets/components): `assets/components`

### Other components

- **Demo operator**
- **OpenShift environment**

## Connections

- Demo operator → Scenario details: reads details (evidence: `README.md`)
- Demo operator → Scenario bootstraps: runs scripts (evidence: `README.md`)
- Scenario bootstraps → OpenShift environment: sets up environment
- Demo operator → Credential setup: provides credentials
- Component setup scripts → OpenShift environment: configures services
- Reusable manifests → OpenShift environment: supplies manifests
- Scenario bootstraps → Cloud on Wheels: includes stages
- Scenario bootstraps → Hybrid workload demo: includes demo (evidence: `README.md`)
- Scenario bootstraps → Cluster service demos: covers scenarios
- Scenario bootstraps → Security and network demos: covers scenarios
- Scenario bootstraps → Scaling and resilience demos: covers scenarios
- Contacts frontend → Contacts API: proxies requests (evidence: `scenarios/uc19-network-graphs/mini-contacts/frontend/server.js`)
- Contacts API → Contacts DB layer: calls queries (evidence: `scenarios/uc19-network-graphs/mini-contacts/api/app/main.py`)
- Contacts DB layer → Contacts database: queries database (evidence: `scenarios/uc19-network-graphs/mini-contacts/api/app/db.py`)
- KEDA counter app → Counter initialization: loads configuration (evidence: `scenarios/uc16-workload-scalability/keda/app/index.php`)
- KEDA counter app → Counter database: updates counter (evidence: `scenarios/uc16-workload-scalability/keda/app/index.php`)
- Counter initialization → Counter database: initializes table (evidence: `scenarios/uc16-workload-scalability/keda/app/index.php`)
- Counter reset → Counter database: resets counter
- Pod spot frontend → Pod status API: uses backend URL
- Pod metrics demo → OpenShift environment: exposes demo endpoint
- Container greeting service → OpenShift environment: serves greeting
- Multicluster management → OpenShift environment: installs management
- GitOps and pipelines → OpenShift environment: installs tooling
- Logging and storage → OpenShift environment: configures services
- Virtualization and serverless → OpenShift environment: configures services
