# pravingruve/ocp-train-labs architecture

> Architecture diagram of the GitHub repository pravingruve/ocp-train-labs, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-08). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/pravingruve/ocp-train-labs
- Repository: https://github.com/pravingruve/ocp-train-labs

## Overview

ocp-train-labs is a hands-on OpenShift curriculum, not primarily an application: learners follow labs that explain a platform concept and practice it on a cluster. The path progresses from environment setup and workload basics through platform operations, observability, DevOps, networking, multi-cluster management, and resilience. A small Flask app supplies visible workload behaviors; a separate bonus lab demonstrates a Kubernetes operator. Lab details beyond the README and sampled source are represented at directory level, so relationships are limited to those documented in the README.

Main entry points: [`app/app.py`](https://github.com/pravingruve/ocp-train-labs/blob/main/app/app.py) (Flask demo app), [`labs/01-python-app-podman-vscode`](https://github.com/pravingruve/ocp-train-labs/tree/main/labs/01-python-app-podman-vscode) (App lab), [`labs/08-namespaces-projects`](https://github.com/pravingruve/ocp-train-labs/tree/main/labs/08-namespaces-projects) (Workload labs), [`labs/55-bonus-python-operator-kopf/operator/handlers.py`](https://github.com/pravingruve/ocp-train-labs/blob/main/labs/55-bonus-python-operator-kopf/operator/handlers.py) (PyApp operator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_learning["Learning path"]
  node_setup["Setup labs"]
  node_app_lab["App lab"]
  node_platform_prep["Platform prep"]
end

subgraph group_workloads["Workloads and platform"]
  node_foundations["Foundations"]
  node_workloads_core["Workload labs"]
  node_storage_images["Storage and images"]
  node_security["Security labs"]
end

subgraph group_operations["Day-two operations"]
  node_cluster_internals["Cluster internals"]
  node_observability["Observability labs"]
  node_performance["Performance labs"]
  node_resilience["Resilience labs"]
  node_breakfix["Break-fix drills"]
end

subgraph group_automation["Automation and scale"]
  node_github["GitHub labs"]
  node_tekton["Tekton CI"]
  node_argocd["Argo CD"]
  node_cilium["Cilium labs"]
  node_multicluster["Multi-cluster"]
end

subgraph group_examples["Learning examples"]
  node_pyapp["Flask demo app<br/>[app.py]"]
  node_operator["PyApp operator<br/>[handlers.py]"]
end

node_learner(("Cluster learner"))

node_learner -->|"starts with"| node_setup
node_learner -->|"builds and tests"| node_app_lab
node_learner -->|"prepares cluster"| node_platform_prep
node_learner -->|"learns architecture"| node_foundations
node_learner -->|"practices workloads"| node_workloads_core
node_learner -->|"learns storage"| node_storage_images
node_learner -->|"practices security"| node_security
node_learner -->|"studies internals"| node_cluster_internals
node_learner -->|"practices observability"| node_observability
node_learner -->|"tunes workloads"| node_performance
node_learner -->|"learns GitHub"| node_github
node_learner -->|"practices CI"| node_tekton
node_learner -->|"practices CD"| node_argocd
node_learner -->|"studies networking"| node_cilium
node_learner -->|"manages clusters"| node_multicluster
node_learner -->|"practices recovery"| node_resilience
node_learner -->|"troubleshoots failures"| node_breakfix
node_app_lab -->|"builds and exercises"| node_pyapp
node_workloads_core -->|"uses demo app"| node_pyapp
node_operator -.->|"manages app"| node_pyapp

click node_setup "https://github.com/pravingruve/ocp-train-labs/tree/main/labs/00-bastion-and-tools"
click node_app_lab "https://github.com/pravingruve/ocp-train-labs/tree/main/labs/01-python-app-podman-vscode"
click node_platform_prep "https://github.com/pravingruve/ocp-train-labs/tree/main/labs/02-platform-prep"
click node_foundations "https://github.com/pravingruve/ocp-train-labs/tree/main/labs/03-openshift-architecture"
click node_workloads_core "https://github.com/pravingruve/ocp-train-labs/tree/main/labs/08-namespaces-projects"
click node_storage_images "https://github.com/pravingruve/ocp-train-labs/tree/main/labs/17-storage-pv-pvc-storageclass"
click node_security "https://github.com/pravingruve/ocp-train-labs/tree/main/labs/20-authentication-oauth"
click node_cluster_internals "https://github.com/pravingruve/ocp-train-labs/tree/main/labs/26-cluster-operators"
click node_observability "https://github.com/pravingruve/ocp-train-labs/tree/main/labs/35-monitoring"
click node_performance "https://github.com/pravingruve/ocp-train-labs/tree/main/labs/39-performance-tuning"
click node_github "https://github.com/pravingruve/ocp-train-labs/tree/main/labs/41-github"
click node_tekton "https://github.com/pravingruve/ocp-train-labs/tree/main/labs/42-cicd-tekton"
click node_argocd "https://github.com/pravingruve/ocp-train-labs/tree/main/labs/43-gitops-argocd"
click node_cilium "https://github.com/pravingruve/ocp-train-labs/tree/main/labs/44-cilium"
click node_multicluster "https://github.com/pravingruve/ocp-train-labs/tree/main/labs/47-acm"
click node_resilience "https://github.com/pravingruve/ocp-train-labs/tree/main/labs/50-backup-restore-oadp-minio"
click node_breakfix "https://github.com/pravingruve/ocp-train-labs/tree/main/breakfix"
click node_pyapp "https://github.com/pravingruve/ocp-train-labs/blob/main/app/app.py"
click node_operator "https://github.com/pravingruve/ocp-train-labs/blob/main/labs/55-bonus-python-operator-kopf/operator/handlers.py"

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_setup,node_app_lab,node_platform_prep toneBlue
class node_foundations,node_workloads_core,node_storage_images,node_security toneAmber
class node_cluster_internals,node_observability,node_performance,node_resilience,node_breakfix toneMint
class node_github,node_tekton,node_argocd,node_cilium,node_multicluster toneRose
class node_pyapp,node_operator,node_learner toneIndigo
```

## Components

### Learning path

- [Setup labs](https://github.com/pravingruve/ocp-train-labs/tree/main/labs/00-bastion-and-tools): `labs/00-bastion-and-tools`
- [App lab](https://github.com/pravingruve/ocp-train-labs/tree/main/labs/01-python-app-podman-vscode): `labs/01-python-app-podman-vscode`
- [Platform prep](https://github.com/pravingruve/ocp-train-labs/tree/main/labs/02-platform-prep): `labs/02-platform-prep`

### Workloads and platform

- [Foundations](https://github.com/pravingruve/ocp-train-labs/tree/main/labs/03-openshift-architecture): `labs/03-openshift-architecture`
- [Workload labs](https://github.com/pravingruve/ocp-train-labs/tree/main/labs/08-namespaces-projects): `labs/08-namespaces-projects`
- [Storage and images](https://github.com/pravingruve/ocp-train-labs/tree/main/labs/17-storage-pv-pvc-storageclass): `labs/17-storage-pv-pvc-storageclass`
- [Security labs](https://github.com/pravingruve/ocp-train-labs/tree/main/labs/20-authentication-oauth): `labs/20-authentication-oauth`

### Day-two operations

- [Cluster internals](https://github.com/pravingruve/ocp-train-labs/tree/main/labs/26-cluster-operators): `labs/26-cluster-operators`
- [Observability labs](https://github.com/pravingruve/ocp-train-labs/tree/main/labs/35-monitoring): `labs/35-monitoring`
- [Performance labs](https://github.com/pravingruve/ocp-train-labs/tree/main/labs/39-performance-tuning): `labs/39-performance-tuning`
- [Resilience labs](https://github.com/pravingruve/ocp-train-labs/tree/main/labs/50-backup-restore-oadp-minio): `labs/50-backup-restore-oadp-minio`
- [Break-fix drills](https://github.com/pravingruve/ocp-train-labs/tree/main/breakfix): `breakfix`

### Automation and scale

- [GitHub labs](https://github.com/pravingruve/ocp-train-labs/tree/main/labs/41-github): `labs/41-github`
- [Tekton CI](https://github.com/pravingruve/ocp-train-labs/tree/main/labs/42-cicd-tekton): `labs/42-cicd-tekton`
- [Argo CD](https://github.com/pravingruve/ocp-train-labs/tree/main/labs/43-gitops-argocd): `labs/43-gitops-argocd`
- [Cilium labs](https://github.com/pravingruve/ocp-train-labs/tree/main/labs/44-cilium): `labs/44-cilium`
- [Multi-cluster](https://github.com/pravingruve/ocp-train-labs/tree/main/labs/47-acm): `labs/47-acm`

### Learning examples

- [Flask demo app](https://github.com/pravingruve/ocp-train-labs/blob/main/app/app.py): `app/app.py`
- [PyApp operator](https://github.com/pravingruve/ocp-train-labs/blob/main/labs/55-bonus-python-operator-kopf/operator/handlers.py): `labs/55-bonus-python-operator-kopf/operator/handlers.py`

### Other components

- **Cluster learner**

## Connections

- Cluster learner → Setup labs: starts with (evidence: `README.md`)
- Cluster learner → App lab: builds and tests (evidence: `README.md`)
- Cluster learner → Platform prep: prepares cluster (evidence: `README.md`)
- Cluster learner → Foundations: learns architecture (evidence: `README.md`)
- Cluster learner → Workload labs: practices workloads (evidence: `README.md`)
- Cluster learner → Storage and images: learns storage (evidence: `README.md`)
- Cluster learner → Security labs: practices security (evidence: `README.md`)
- Cluster learner → Cluster internals: studies internals (evidence: `README.md`)
- Cluster learner → Observability labs: practices observability (evidence: `README.md`)
- Cluster learner → Performance labs: tunes workloads (evidence: `README.md`)
- Cluster learner → GitHub labs: learns GitHub (evidence: `README.md`)
- Cluster learner → Tekton CI: practices CI (evidence: `README.md`)
- Cluster learner → Argo CD: practices CD (evidence: `README.md`)
- Cluster learner → Cilium labs: studies networking (evidence: `README.md`)
- Cluster learner → Multi-cluster: manages clusters (evidence: `README.md`)
- Cluster learner → Resilience labs: practices recovery (evidence: `README.md`)
- Cluster learner → Break-fix drills: troubleshoots failures (evidence: `README.md`)
- App lab → Flask demo app: builds and exercises (evidence: `README.md`)
- Workload labs → Flask demo app: uses demo app (evidence: `README.md`)
- PyApp operator → Flask demo app: manages app
