How jobopak/proyectointegradoasir works
1. What this repository is
- This is an infrastructure-as-code and operations repository, not a product codebase.
- Its purpose is to describe, provision, and operate a high-availability Kubernetes cluster on Proxmox VE with supporting services for networking, ingress, persistent storage, and application deployment.
2. Top-level architecture boundary
- The physical foundation is a Proxmox VE host.
- On top of that, the repo models several Ubuntu Server VMs: one Kubernetes control plane, two workers, an Ansible automation node, and an NFS storage server.
- A separate client machine is used only for validation and access tests.
3. Repository split by concern
- docs/ contains the step-by-step project narrative and the design rationale.
- ansible/ contains automation for provisioning and node setup.
- kubernetes/ contains cluster manifests for networking, ingress, storage, and sample workloads.
- scripts/ is present but currently only a placeholder.
4. Provisioning and configuration automation
- The Ansible area is small but important: inventory/hosts.ini defines target hosts, while the playbooks cover prerequisites and Kubernetes node installation.
- This automation boundary suggests the repo is meant to standardize node setup rather than hand-configure each VM.
5. Cluster bootstrap layer
- Kubernetes cluster initialization is represented in the manifests and docs rather than as an imperative installer script.
- The repo assumes a kubeadm-style bootstrap workflow on Ubuntu with containerd as runtime and Flannel as the CNI network plugin.
- kubernetes/manifests/kube-flannel.yml is the cluster pod networking layer.
6. Internal pod networking
- Flannel provides the overlay network that allows pods on different worker nodes to communicate.
- The docs indicate the repo treats kernel/network prerequisites as first-class architecture constraints, especially around br_netfilter, IPv6 handling, and kubelet node IP selection.
7. External service exposure
- The cluster exposes services externally through MetalLB plus an NGINX Ingress Controller.
- MetalLB is the bare-metal load-balancer layer; its manifests live under kubernetes/manifests/metallb/.
- NGINX ingress is deployed separately under kubernetes/manifests/ingress/, and becomes the primary HTTP/HTTPS entrypoint for applications.
8. Persistent storage subsystem
- Persistent data is handled by a dedicated NFS server and Kubernetes storage resources.
- The storage manifests include an NFS-backed StorageClass, RBAC, a storage provisioner/deployment, and a test PVC.
- This creates the storage boundary between ephemeral application pods and durable volumes on external infrastructure.
9. Application workload layer
- The repo includes two application examples: a simple web-demo workload and a more complete WordPress + MySQL stack.
- The WordPress app is split into namespace, secrets, database, storage, workload, and ingress manifests, which shows the intended separation of concerns:
- namespace isolation
- secret management
- stateful database
- persistent storage
- ingress-based exposure
10. Operational data flow
- The main runtime flow is: Proxmox VM provisioning → Ansible node setup → Kubernetes cluster bootstrap → Flannel pod networking → MetalLB external IP assignment → NGINX ingress routing → application pods → NFS-backed persistence.
- This is the key path to capture in an architecture diagram because it shows how traffic and state move through the system.
11. Operational caveats baked into the design
- The README documents important environment constraints that affect architecture: IPv6 is disabled, kubelet is pinned to the correct node IP, containerd uses systemd cgroups, and MetalLB requires strictARP.
- These are not just troubleshooting notes; they are part of the cluster’s operational contract.
12. Documentation as a first-class deliverable
- The docs/ folder is structured as a phased implementation guide from Proxmox install through monitoring.
- That makes the repository suitable both as a deployment reference and as a project report artifact, with PDFs included for formal documentation.
13. Security and credential boundary
- kubernetes/token_k8s.txt indicates the repo also stores cluster join/bootstrap material.
- In an architecture diagram, this should be treated as a sensitive bootstrap artifact, separate from normal workload manifests.
14. What is intentionally out of scope
- There is no application source tree here beyond manifests and deployment descriptors.
- Monitoring with Prometheus/Grafana is described in the docs as optional, but there is no visible dedicated monitoring stack in the file tree yet.
Main entry points: Documento-de-Análisis-de-Requisitos-y-Viabilidad.md Project docs · metallb-native.yaml MetalLB · deploy.yaml NGINX ingress · hosts.ini Inventory
Components 20
Foundation
Physical host and virtual machine layer.
- Proxmox VE · Physical virtualization host for the lab environment.
- Ubuntu VMs · Control plane, workers, automation node, and storage server running on Proxmox.
- Control plane · Ubuntu Kubernetes master node created on Proxmox.
- Workers · Ubuntu worker nodes that run application pods.
Automation
Ansible-based host provisioning and node setup.
- Ansible node · Dedicated host that runs provisioning and setup playbooks.
- Inventory · Target host definitions used by automation.
ansible/inventory/hosts.ini - Prereqs · Installs host prerequisites and cluster dependencies.
ansible/playbooks/pre-requisitos.yml - Node setup · Configures Kubernetes nodes and bootstrap settings.
ansible/playbooks/install-k8s-node.yml
Cluster
Kubernetes bootstrap and shared platform services.
- Flannel · Pod networking layer for cross-node connectivity.
kubernetes/manifests/kube-flannel.yml - MetalLB · External IP assignment for services on bare metal.
kubernetes/manifests/metallb/metallb-native.yaml - LB config · Address pool and MetalLB operational settings.
kubernetes/manifests/metallb/metallb-config.yaml - NGINX ingress · HTTP and HTTPS entrypoint for application routing.
kubernetes/manifests/ingress/deploy.yaml
Storage
Persistent storage boundary and NFS-backed provisioning.
- NFS storage · NFS-backed dynamic provisioning and storage resources.
kubernetes/manifests/storage/deployment.yaml - NFS server · External server that holds durable shared volumes.
Workloads
Example application manifests deployed on the cluster.
Docs
Project narrative, implementation phases, and report artifacts.
- Project docs · Phased implementation guide and project report material.
docs/Documento-de-Análisis-de-Requisitos-y-Viabilidad.md - Proxmox setup · Proxmox installation and Ubuntu VM provisioning steps.
docs/01.Instalación-Proxmox.md - Cluster bootstrap · Kubernetes initialization and node join workflow.
docs/03.Inicialización-del-Cluster-Kubernetes.md
Ops
Sensitive bootstrap material and operational artifacts.
- Join token · Sensitive cluster bootstrap artifact stored in the repository.
kubernetes/token_k8s.txt
Connections 27
- Proxmox VE → Ubuntu VMs: hosts · Proxmox provides the virtual machine layer for the cluster lab.
- Ubuntu VMs → Control plane: includes · The VM layer includes the Kubernetes control-plane node.
- Ubuntu VMs → Workers: includes · The VM layer includes worker nodes.
- Ubuntu VMs → Ansible node: includes · The VM layer includes the automation host.
- Ubuntu VMs → NFS server: includes · The VM layer includes the external storage server.
- Ansible node → Inventory: uses · The automation host runs Ansible against the inventory.
- Inventory → Prereqs: drives · Inventory targets are used by the prerequisite playbook.
- Inventory → Node setup: drives · Inventory targets are used by the Kubernetes node playbook.
- Prereqs → Control plane: prepares · Prerequisites are applied to the control-plane host.
- Prereqs → Workers: prepares · Prerequisites are applied to worker hosts.
- Node setup → Control plane: configures · Node setup standardizes the control-plane configuration.
- Node setup → Workers: configures · Node setup standardizes the worker configuration.
- Project docs → Proxmox setup: covers · The documentation is structured as phased implementation guides.
- Project docs → Cluster bootstrap: covers · Cluster bootstrap is one of the documented phases.
- Control plane → Flannel: boots with · Kubernetes uses Flannel for pod networking.
- Flannel → Workers: connects · Overlay networking enables pod traffic across worker nodes.
- Control plane → MetalLB: exposes via · Services are assigned external IPs through MetalLB.
- MetalLB → LB config: configured by · MetalLB behavior is defined by its address-pool config.
- MetalLB → NGINX ingress: feeds · Ingress is exposed through bare-metal service IPs.
- NGINX ingress → WordPress: routes to · Ingress routes HTTP traffic to the WordPress stack.
- NGINX ingress → Web demo: routes to · Ingress can also expose the sample demo workload.
- NFS storage → NFS server: backs onto · Persistent volumes are provisioned from the NFS server.
- WordPress → NFS storage: persists on · WordPress uses persistent storage for stateful data.
- WordPress → Join token: depends on · Bootstrap material is a sensitive operational dependency.
- Project docs → NFS storage: describes · The documentation covers NFS-backed persistent storage.
- Project docs → MetalLB: describes · The documentation covers bare-metal service exposure.
- Project docs → NGINX ingress: describes · The documentation covers ingress controller deployment.