# dmcheong/kubernetes_template architecture

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

- Interactive diagram: https://gitdiagram.com/dmcheong/kubernetes_template
- Repository: https://github.com/dmcheong/kubernetes_template

## Overview

This repository is an automated Kubernetes learning environment built around a Bash orchestrator. The documented user workflow is to start Minikube and run `index.sh`, which checks or installs prerequisites, deploys example cluster resources, then sets up monitoring and integrations. The graph preserves the documented Kubernetes learning areas, reusable manifests, and cleanup capability. Relationships are based on the README only; no source excerpts were available, so implementation-level calls are not inferred.

Main entry points: [`index.sh`](https://github.com/dmcheong/kubernetes_template/blob/main/index.sh) (Environment orchestrator), [`test/monitoring`](https://github.com/dmcheong/kubernetes_template/tree/main/test/monitoring) (Metrics and dashboards), [`test/namespaces`](https://github.com/dmcheong/kubernetes_template/tree/main/test/namespaces) (Namespaces), [`test/pods`](https://github.com/dmcheong/kubernetes_template/tree/main/test/pods) (Pods)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_bootstrap["Setup and tools"]
  node_orchestrator["Environment orchestrator<br/>[index.sh]"]
  node_base_tools["Base tool setup"]
  node_monitoring_tools["Monitoring tool setup"]
  node_shared_config["Shared configuration<br/>[global.env]"]
  node_cleanup["Development cleanup<br/>[clean_env_dev.sh]"]
end

subgraph group_cluster["Cluster learning"]
  node_namespaces["Namespaces"]
  node_pods["Pods"]
  node_deployments["Deployments"]
  node_services["Services"]
  node_storage["Persistent storage"]
  node_secrets["Sealed secrets"]
  node_replicasets["ReplicaSets"]
  node_manifests["Reusable manifests"]
end

subgraph group_observability["Monitoring"]
  node_monitoring["Metrics and dashboards"]
  node_alerting["Alerting"]
  node_autoscaling["Prometheus autoscaling"]
end

subgraph group_integrations["Cluster integrations"]
  node_kong["Kong gateway"]
  node_traefik["Traefik ingress"]
  node_vault["Vault integrations"]
end

node_learner(("Learner"))
node_kubernetes{{"Kubernetes cluster"}}

node_learner -->|"runs"| node_orchestrator
node_orchestrator -->|"checks tools"| node_base_tools
node_orchestrator -->|"deploys resources"| node_namespaces
node_orchestrator -->|"checks tools"| node_monitoring_tools
node_orchestrator -->|"sets up"| node_monitoring
node_orchestrator -->|"deploys"| node_kong
node_orchestrator -->|"deploys"| node_traefik
node_orchestrator -->|"deploys"| node_vault
node_orchestrator -->|"targets"| node_kubernetes
node_namespaces -->|"then deploys"| node_pods
node_pods -->|"then deploys"| node_deployments
node_deployments -->|"then deploys"| node_services
node_services -->|"then deploys"| node_storage
node_storage -->|"then deploys"| node_secrets
node_secrets -->|"then deploys"| node_kong
node_monitoring -->|"includes"| node_alerting
node_monitoring -->|"includes"| node_autoscaling
node_cleanup -->|"cleans environment"| node_kubernetes

click node_orchestrator "https://github.com/dmcheong/kubernetes_template/blob/main/index.sh"
click node_base_tools "https://github.com/dmcheong/kubernetes_template/blob/main/scripts/bin/check_installation_basique_tools.sh"
click node_monitoring_tools "https://github.com/dmcheong/kubernetes_template/blob/main/scripts/bin/check_installation_monitoring_tools.sh"
click node_shared_config "https://github.com/dmcheong/kubernetes_template/blob/main/scripts/config/global.env"
click node_cleanup "https://github.com/dmcheong/kubernetes_template/blob/main/scripts/bin/clean_env_dev.sh"
click node_namespaces "https://github.com/dmcheong/kubernetes_template/tree/main/test/namespaces"
click node_pods "https://github.com/dmcheong/kubernetes_template/tree/main/test/pods"
click node_deployments "https://github.com/dmcheong/kubernetes_template/tree/main/test/deployment"
click node_services "https://github.com/dmcheong/kubernetes_template/tree/main/test/services"
click node_storage "https://github.com/dmcheong/kubernetes_template/tree/main/test/storageclass"
click node_secrets "https://github.com/dmcheong/kubernetes_template/tree/main/test/sealed-secrets"
click node_replicasets "https://github.com/dmcheong/kubernetes_template/tree/main/test/replicasets"
click node_manifests "https://github.com/dmcheong/kubernetes_template/tree/main/test/template"
click node_monitoring "https://github.com/dmcheong/kubernetes_template/tree/main/test/monitoring"
click node_alerting "https://github.com/dmcheong/kubernetes_template/tree/main/test/monitoring/alerting"
click node_autoscaling "https://github.com/dmcheong/kubernetes_template/tree/main/test/monitoring/autoscaling"
click node_kong "https://github.com/dmcheong/kubernetes_template/tree/main/test/gateway"
click node_traefik "https://github.com/dmcheong/kubernetes_template/tree/main/test/ingress/reverse_proxy"
click node_vault "https://github.com/dmcheong/kubernetes_template/tree/main/test/vault"

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_orchestrator,node_base_tools,node_monitoring_tools,node_shared_config,node_cleanup toneBlue
class node_namespaces,node_pods,node_deployments,node_services,node_storage,node_secrets,node_replicasets,node_manifests toneAmber
class node_monitoring,node_alerting,node_autoscaling toneMint
class node_kong,node_traefik,node_vault toneRose
class node_learner,node_kubernetes toneIndigo
```

## Components

### Setup and tools

- [Environment orchestrator](https://github.com/dmcheong/kubernetes_template/blob/main/index.sh): `index.sh`
- [Base tool setup](https://github.com/dmcheong/kubernetes_template/blob/main/scripts/bin/check_installation_basique_tools.sh): `scripts/bin/check_installation_basique_tools.sh`
- [Monitoring tool setup](https://github.com/dmcheong/kubernetes_template/blob/main/scripts/bin/check_installation_monitoring_tools.sh): `scripts/bin/check_installation_monitoring_tools.sh`
- [Shared configuration](https://github.com/dmcheong/kubernetes_template/blob/main/scripts/config/global.env): `scripts/config/global.env`
- [Development cleanup](https://github.com/dmcheong/kubernetes_template/blob/main/scripts/bin/clean_env_dev.sh): `scripts/bin/clean_env_dev.sh`

### Cluster learning

- [Namespaces](https://github.com/dmcheong/kubernetes_template/tree/main/test/namespaces): `test/namespaces`
- [Pods](https://github.com/dmcheong/kubernetes_template/tree/main/test/pods): `test/pods`
- [Deployments](https://github.com/dmcheong/kubernetes_template/tree/main/test/deployment): `test/deployment`
- [Services](https://github.com/dmcheong/kubernetes_template/tree/main/test/services): `test/services`
- [Persistent storage](https://github.com/dmcheong/kubernetes_template/tree/main/test/storageclass): `test/storageclass`
- [Sealed secrets](https://github.com/dmcheong/kubernetes_template/tree/main/test/sealed-secrets): `test/sealed-secrets`
- [ReplicaSets](https://github.com/dmcheong/kubernetes_template/tree/main/test/replicasets): `test/replicasets`
- [Reusable manifests](https://github.com/dmcheong/kubernetes_template/tree/main/test/template): `test/template`

### Monitoring

- [Metrics and dashboards](https://github.com/dmcheong/kubernetes_template/tree/main/test/monitoring): `test/monitoring`
- [Alerting](https://github.com/dmcheong/kubernetes_template/tree/main/test/monitoring/alerting): `test/monitoring/alerting`
- [Prometheus autoscaling](https://github.com/dmcheong/kubernetes_template/tree/main/test/monitoring/autoscaling): `test/monitoring/autoscaling`

### Cluster integrations

- [Kong gateway](https://github.com/dmcheong/kubernetes_template/tree/main/test/gateway): `test/gateway`
- [Traefik ingress](https://github.com/dmcheong/kubernetes_template/tree/main/test/ingress/reverse_proxy): `test/ingress/reverse_proxy`
- [Vault integrations](https://github.com/dmcheong/kubernetes_template/tree/main/test/vault): `test/vault`

### Other components

- **Learner**
- **Kubernetes cluster**

## Connections

- Learner → Environment orchestrator: runs (evidence: `README.md`)
- Environment orchestrator → Base tool setup: checks tools (evidence: `README.md`)
- Environment orchestrator → Namespaces: deploys resources (evidence: `README.md`)
- Environment orchestrator → Monitoring tool setup: checks tools (evidence: `README.md`)
- Environment orchestrator → Metrics and dashboards: sets up (evidence: `README.md`)
- Environment orchestrator → Kong gateway: deploys (evidence: `README.md`)
- Environment orchestrator → Traefik ingress: deploys (evidence: `README.md`)
- Environment orchestrator → Vault integrations: deploys (evidence: `README.md`)
- Environment orchestrator → Kubernetes cluster: targets (evidence: `README.md`)
- Namespaces → Pods: then deploys (evidence: `README.md`)
- Pods → Deployments: then deploys (evidence: `README.md`)
- Deployments → Services: then deploys (evidence: `README.md`)
- Services → Persistent storage: then deploys (evidence: `README.md`)
- Persistent storage → Sealed secrets: then deploys (evidence: `README.md`)
- Sealed secrets → Kong gateway: then deploys (evidence: `README.md`)
- Metrics and dashboards → Alerting: includes (evidence: `README.md`)
- Metrics and dashboards → Prometheus autoscaling: includes (evidence: `README.md`)
- Development cleanup → Kubernetes cluster: cleans environment (evidence: `README.md`)
