# wbatchayon/kubeops architecture

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

- Interactive diagram: https://gitdiagram.com/wbatchayon/kubeops
- Repository: https://github.com/wbatchayon/kubeops

## Overview

KubeOps describes a Proxmox-hosted Kubernetes deployment stack: operators provision VMs with Terraform, configure and bootstrap nodes with Ansible, then install Cilium and Argo CD before GitOps takes over. The repository also includes Cluster API definitions and platform capabilities for ingress, certificates, registry, monitoring, and secrets. The Go CLI exposes commands and configuration, but its deployment actions are explicitly TODO/in progress; it should not be read as the implemented orchestrator. Relationships among unsampled platform manifests are omitted where the README does not specify wiring.

Main entry points: [`terraform/environments/dev/main.tf`](https://github.com/wbatchayon/kubeops/blob/main/terraform/environments/dev/main.tf) (Terraform), [`ansible/playbooks/bootstrap.yaml`](https://github.com/wbatchayon/kubeops/blob/main/ansible/playbooks/bootstrap.yaml) (Ansible Bootstrap), [`argo-cd/applications/kubeops-root.yaml`](https://github.com/wbatchayon/kubeops/blob/main/argo-cd/applications/kubeops-root.yaml) (Argo CD), [`cmd/kubeops/main.go`](https://github.com/wbatchayon/kubeops/blob/main/cmd/kubeops/main.go) (CLI Entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_provisioning["VM Provisioning"]
  node_terraform["Terraform<br/>[main.tf]"]
  node_compute["Compute Module<br/>[main.tf]"]
  node_network["Network Module<br/>[main.tf]"]
  node_storage["Storage Module<br/>[main.tf]"]
end

subgraph group_cluster["Cluster Bootstrap"]
  node_ansible["Ansible Bootstrap<br/>[bootstrap.yaml]"]
  node_kubeadm["Kubeadm Setup<br/>[main.yaml]"]
  node_clusterapi["Cluster API"]
end

subgraph group_platform["Platform Services"]
  node_cilium["Cilium CNI<br/>[values.yaml]"]
  node_gateway["Gateway API<br/>[gateway.yaml]"]
  node_argocd["Argo CD<br/>[kubeops-root.yaml]"]
  node_certmanager["cert-manager PKI<br/>[clusterissuer.yaml]"]
  node_harbor["Harbor Registry<br/>[values.yaml]"]
  node_monitoring["Prometheus/Grafana<br/>[values.yaml]"]
  node_openbao["OpenBao Secrets<br/>[kubeops-policy.hcl]"]
end

subgraph group_cli["CLI Interface"]
  node_entry["CLI Entry<br/>[main.go]"]
  node_commands["CLI Commands<br/>[commands.go]"]
end

node_operator(("Operator"))
node_proxmox["Proxmox"]

node_operator -->|"provisions VMs"| node_terraform
node_terraform -->|"targets"| node_proxmox
node_operator -->|"bootstraps nodes"| node_ansible
node_ansible -.->|"configures cluster"| node_kubeadm
node_operator -.->|"deploys cluster"| node_clusterapi
node_operator -->|"installs"| node_cilium
node_operator -->|"installs"| node_argocd
node_argocd -.->|"manages via GitOps"| node_gateway
node_entry -->|"registers"| node_commands
node_operator -.->|"runs"| node_entry

click node_terraform "https://github.com/wbatchayon/kubeops/blob/main/terraform/environments/dev/main.tf"
click node_compute "https://github.com/wbatchayon/kubeops/blob/main/terraform/modules/compute/main.tf"
click node_network "https://github.com/wbatchayon/kubeops/blob/main/terraform/modules/network/main.tf"
click node_storage "https://github.com/wbatchayon/kubeops/blob/main/terraform/modules/storage/main.tf"
click node_ansible "https://github.com/wbatchayon/kubeops/blob/main/ansible/playbooks/bootstrap.yaml"
click node_kubeadm "https://github.com/wbatchayon/kubeops/blob/main/ansible/roles/kubeadm/tasks/main.yaml"
click node_clusterapi "https://github.com/wbatchayon/kubeops/blob/main/cluster-api/bases/kubeops-cluster.yaml"
click node_cilium "https://github.com/wbatchayon/kubeops/blob/main/cilium/base/values.yaml"
click node_gateway "https://github.com/wbatchayon/kubeops/blob/main/gateway-api/gateway.yaml"
click node_argocd "https://github.com/wbatchayon/kubeops/blob/main/argo-cd/applications/kubeops-root.yaml"
click node_certmanager "https://github.com/wbatchayon/kubeops/blob/main/cert-manager/manifests/clusterissuer.yaml"
click node_harbor "https://github.com/wbatchayon/kubeops/blob/main/harbor/base/values.yaml"
click node_monitoring "https://github.com/wbatchayon/kubeops/blob/main/monitoring/prometheus/values.yaml"
click node_openbao "https://github.com/wbatchayon/kubeops/blob/main/openbao/policies/kubeops-policy.hcl"
click node_entry "https://github.com/wbatchayon/kubeops/blob/main/cmd/kubeops/main.go"
click node_commands "https://github.com/wbatchayon/kubeops/blob/main/cmd/kubeops/commands/commands.go"

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_terraform,node_compute,node_network,node_storage toneBlue
class node_ansible,node_kubeadm,node_clusterapi toneAmber
class node_cilium,node_gateway,node_argocd,node_certmanager,node_harbor,node_monitoring,node_openbao toneMint
class node_entry,node_commands toneRose
class node_operator,node_proxmox toneIndigo
```

## Components

### VM Provisioning

- [Terraform](https://github.com/wbatchayon/kubeops/blob/main/terraform/environments/dev/main.tf): `terraform/environments/dev/main.tf`
- [Compute Module](https://github.com/wbatchayon/kubeops/blob/main/terraform/modules/compute/main.tf): `terraform/modules/compute/main.tf`
- [Network Module](https://github.com/wbatchayon/kubeops/blob/main/terraform/modules/network/main.tf): `terraform/modules/network/main.tf`
- [Storage Module](https://github.com/wbatchayon/kubeops/blob/main/terraform/modules/storage/main.tf): `terraform/modules/storage/main.tf`

### Cluster Bootstrap

- [Ansible Bootstrap](https://github.com/wbatchayon/kubeops/blob/main/ansible/playbooks/bootstrap.yaml): `ansible/playbooks/bootstrap.yaml`
- [Kubeadm Setup](https://github.com/wbatchayon/kubeops/blob/main/ansible/roles/kubeadm/tasks/main.yaml): `ansible/roles/kubeadm/tasks/main.yaml`
- [Cluster API](https://github.com/wbatchayon/kubeops/blob/main/cluster-api/bases/kubeops-cluster.yaml): `cluster-api/bases/kubeops-cluster.yaml`

### Platform Services

- [Cilium CNI](https://github.com/wbatchayon/kubeops/blob/main/cilium/base/values.yaml): `cilium/base/values.yaml`
- [Gateway API](https://github.com/wbatchayon/kubeops/blob/main/gateway-api/gateway.yaml): `gateway-api/gateway.yaml`
- [Argo CD](https://github.com/wbatchayon/kubeops/blob/main/argo-cd/applications/kubeops-root.yaml): `argo-cd/applications/kubeops-root.yaml`
- [cert-manager PKI](https://github.com/wbatchayon/kubeops/blob/main/cert-manager/manifests/clusterissuer.yaml): `cert-manager/manifests/clusterissuer.yaml`
- [Harbor Registry](https://github.com/wbatchayon/kubeops/blob/main/harbor/base/values.yaml): `harbor/base/values.yaml`
- [Prometheus/Grafana](https://github.com/wbatchayon/kubeops/blob/main/monitoring/prometheus/values.yaml): `monitoring/prometheus/values.yaml`
- [OpenBao Secrets](https://github.com/wbatchayon/kubeops/blob/main/openbao/policies/kubeops-policy.hcl): `openbao/policies/kubeops-policy.hcl`

### CLI Interface

- [CLI Entry](https://github.com/wbatchayon/kubeops/blob/main/cmd/kubeops/main.go): `cmd/kubeops/main.go`
- [CLI Commands](https://github.com/wbatchayon/kubeops/blob/main/cmd/kubeops/commands/commands.go): `cmd/kubeops/commands/commands.go`

### Other components

- **Operator**
- **Proxmox**

## Connections

- Operator → Terraform: provisions VMs (evidence: `README.md`)
- Terraform → Proxmox: targets (evidence: `README.md`)
- Operator → Ansible Bootstrap: bootstraps nodes (evidence: `README.md`)
- Ansible Bootstrap → Kubeadm Setup: configures cluster
- Operator → Cluster API: deploys cluster (evidence: `README.md`)
- Operator → Cilium CNI: installs (evidence: `README.md`)
- Operator → Argo CD: installs (evidence: `README.md`)
- Argo CD → Gateway API: manages via GitOps
- CLI Entry → CLI Commands: registers (evidence: `cmd/kubeops/main.go`)
- Operator → CLI Entry: runs
