# micheelengronne/kcd-2026 architecture

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

- Interactive diagram: https://gitdiagram.com/micheelengronne/kcd-2026
- Repository: https://github.com/micheelengronne/kcd-2026

## Overview

This repository deploys a SPIFFE/SPIRE-backed SSH demo: install the cluster components and VM, register an SSH host-key SPIFFE entry, then connect to the VM with its host keys automatically recognized. The README documents the overall workflow but no source excerpts are available, so relationships below are limited to those explicit statements.

Main entry points: [`install.sh`](https://github.com/micheelengronne/kcd-2026/blob/main/install.sh) (Install stack), [`vm-ssh.sh`](https://github.com/micheelengronne/kcd-2026/blob/main/vm-ssh.sh) (Connect to VM), [`spire-create-entry.sh`](https://github.com/micheelengronne/kcd-2026/blob/main/spire-create-entry.sh) (Create SSH entry), [`vm.yaml`](https://github.com/micheelengronne/kcd-2026/blob/main/vm.yaml) (VM definition)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_deployment["Deployment"]
  node_installer["Install stack<br/>[install.sh]"]
  node_spire_config["SPIRE values<br/>[spire-values.yml]"]
  node_vault_config["Vault values<br/>[vault-values.yml]"]
  node_kustomize["Kustomize config<br/>[kustomization.yaml]"]
  node_kubevirt_operator["KubeVirt operator"]
end

subgraph group_identity["Identity and SSH"]
  node_entry_creator["Create SSH entry"]
  node_ssh_client["Connect to VM<br/>[vm-ssh.sh]"]
  node_step_ca["Step-CA"]
  node_ssh_hostkeys["SSH host keys"]
end

subgraph group_workload["VM workload"]
  node_vm_manifest["VM definition<br/>[vm.yaml]"]
  node_vm["Virtual machine"]
  node_spire_agent["SPIRE agent"]
  node_attestors["Workload attestors"]
end

node_operator(("Operator"))

node_operator -->|"runs"| node_installer
node_installer -->|"installs SPIRE"| node_spire_config
node_installer -->|"installs stack"| node_vault_config
node_installer -->|"installs stack"| node_kustomize
node_installer -->|"installs KubeVirt"| node_kubevirt_operator
node_installer -->|"installs VM"| node_vm_manifest
node_installer -->|"installs agent"| node_spire_agent
node_installer -->|"installs attestors"| node_attestors
node_installer -->|"installs step-CA"| node_step_ca
node_operator -->|"runs after install"| node_entry_creator
node_entry_creator -->|"creates SPIFFE entry"| node_ssh_hostkeys
node_operator -->|"runs after wait"| node_ssh_client
node_ssh_client -->|"connects to"| node_vm
node_ssh_client -->|"recognizes automatically"| node_ssh_hostkeys
node_vm_manifest -->|"defines"| node_vm
node_vm -->|"runs inside"| node_spire_agent
node_vm -->|"uses"| node_attestors
node_vm -->|"configures"| node_ssh_hostkeys

click node_installer "https://github.com/micheelengronne/kcd-2026/blob/main/install.sh"
click node_spire_config "https://github.com/micheelengronne/kcd-2026/blob/main/spire-values.yml"
click node_vault_config "https://github.com/micheelengronne/kcd-2026/blob/main/vault-values.yml"
click node_kustomize "https://github.com/micheelengronne/kcd-2026/blob/main/kustomization.yaml"
click node_kubevirt_operator "https://github.com/micheelengronne/kcd-2026/blob/main/kubevirt-operator.yaml"
click node_entry_creator "https://github.com/micheelengronne/kcd-2026/blob/main/spire-create-entry.sh"
click node_ssh_client "https://github.com/micheelengronne/kcd-2026/blob/main/vm-ssh.sh"
click node_vm_manifest "https://github.com/micheelengronne/kcd-2026/blob/main/vm.yaml"

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_installer,node_spire_config,node_vault_config,node_kustomize,node_kubevirt_operator toneBlue
class node_entry_creator,node_ssh_client,node_step_ca,node_ssh_hostkeys toneAmber
class node_vm_manifest,node_vm,node_spire_agent,node_attestors toneMint
class node_operator toneIndigo
```

## Components

### Deployment

- [Install stack](https://github.com/micheelengronne/kcd-2026/blob/main/install.sh): `install.sh`
- [SPIRE values](https://github.com/micheelengronne/kcd-2026/blob/main/spire-values.yml): `spire-values.yml`
- [Vault values](https://github.com/micheelengronne/kcd-2026/blob/main/vault-values.yml): `vault-values.yml`
- [Kustomize config](https://github.com/micheelengronne/kcd-2026/blob/main/kustomization.yaml): `kustomization.yaml`
- [KubeVirt operator](https://github.com/micheelengronne/kcd-2026/blob/main/kubevirt-operator.yaml): `kubevirt-operator.yaml`

### Identity and SSH

- [Create SSH entry](https://github.com/micheelengronne/kcd-2026/blob/main/spire-create-entry.sh): `spire-create-entry.sh`
- [Connect to VM](https://github.com/micheelengronne/kcd-2026/blob/main/vm-ssh.sh): `vm-ssh.sh`
- **Step-CA**
- **SSH host keys**

### VM workload

- [VM definition](https://github.com/micheelengronne/kcd-2026/blob/main/vm.yaml): `vm.yaml`
- **Virtual machine**
- **SPIRE agent**
- **Workload attestors**

### Other components

- **Operator**

## Connections

- Operator → Install stack: runs (evidence: `README.md`)
- Install stack → SPIRE values: installs SPIRE (evidence: `README.md`)
- Install stack → Vault values: installs stack (evidence: `README.md`)
- Install stack → Kustomize config: installs stack (evidence: `README.md`)
- Install stack → KubeVirt operator: installs KubeVirt (evidence: `README.md`)
- Install stack → VM definition: installs VM (evidence: `README.md`)
- Install stack → SPIRE agent: installs agent (evidence: `README.md`)
- Install stack → Workload attestors: installs attestors (evidence: `README.md`)
- Install stack → Step-CA: installs step-CA (evidence: `README.md`)
- Operator → Create SSH entry: runs after install (evidence: `README.md`)
- Create SSH entry → SSH host keys: creates SPIFFE entry (evidence: `README.md`)
- Operator → Connect to VM: runs after wait (evidence: `README.md`)
- Connect to VM → Virtual machine: connects to (evidence: `README.md`)
- Connect to VM → SSH host keys: recognizes automatically (evidence: `README.md`)
- VM definition → Virtual machine: defines (evidence: `README.md`)
- Virtual machine → SPIRE agent: runs inside (evidence: `README.md`)
- Virtual machine → Workload attestors: uses (evidence: `README.md`)
- Virtual machine → SSH host keys: configures (evidence: `README.md`)
