Plateforme¶
Architecture¶
%%{init: {"flowchart": {"nodeSpacing": 30, "rankSpacing": 40}}}%%
flowchart LR
ca["Certification authority<br/>Lets encrypt staging, production<br/>or custom pebble server"]
github["github"]
kubectl["kubectl"]
nix["nix"]
ghrel["github releases"]
s3[("contabo images s3")]
tf["Terraform"]
gandi["gandi.net"]
subgraph ci["contabo instance<br/>Instance · Nix Os · SSH"]
subgraph paas["PaaSA"]
reflector["reflector<br/>make all certificates<br/>available in cluster<br/>deploy cert in<br/>all namespaces"]
certmgr["cert-manager"]
cacert["CA Cert"]
apps["apps"]
oauth2["oauth2-proxy"]
dex["dex"]
helm["helm - rke2"]
ingress["ingress nginx"]
longhorn["storage class longhorn"]
end
end
ca ---|"http01 challenge"| certmgr
ca ==>|"if not prod"| cacert
github ---|"abstract oauth2"| dex
kubectl -.->|"auth via kubectl<br/>oidc login plugin"| dex
apps -.-> oauth2
oauth2 -.-> dex
reflector --- certmgr
helm ==> certmgr
helm ==> dex
nix ==>|"build image and deploy"| ghrel
ghrel ==> s3
tf ==>|"deploy"| ci
tf ==> paas
tf ==> helm
tf ==> ingress
tf ==> longhorn
tf -.->|"pull qcow"| s3
tf -.-> gandi
tf ---|"auth"| dex
%% Layout hint only: keeps apps out of column 0 so the cluster sits beside Terraform.
tf --- apps
linkStyle 19 stroke:transparent
──solid line: communication path (runtime exchange)┄┄▶dashed arrow: dependency══▶thick arrow: deployment (UML «deploy»)
Original StarUML export: archi.jpg.
Requirements¶
Note: You could easily adapt terraform to use another provider, it just needs to support
user_datawith a cloud-init compatible syntax.
Applying¶
Follow the steps in README.md to apply the infrastructure.