mirror of
https://github.com/dredx/prole.git
synced 2026-09-24 19:44:33 +00:00
Add [CNPG Clusters] section to prole.cfg as the authoritative source for CNPG cluster definitions. The deploy pipeline reads this registry instead of computing version-appended namespace names at runtime. - conf/service/prole.cfg: add [CNPG Clusters] with knoe-db as identity cluster; fix DATABASE_NAMESPACE=knoe-db (was knoe-db-18-140); add KNOE_IMAGE_REGISTRY for the k3s in-cluster registry hostname - deploy/opentofu/k3s/manifests/prole/knoe-db.yaml: replace hardcoded registry.test-system image with templated KNOE_IMAGE_REGISTRY - knoe/core/actions.py: add _cnpg_cluster_registry(), _cnpg_identity_cluster(); fix _initial_db_namespace() to use declared namespace without version suffix - knoe/core/milestones.py: iterate over all declared clusters in Init and Deploy milestones; per-cluster CNPG_IMAGE_NAME support - knoe/core/ops/cloudnative_pg.py: resolve KNOE_IMAGE_REGISTRY and CNPG_IMAGE_NAME overrides in _apply_manifest() Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| argocd | ||
| manifests | ||
| main.tf | ||
| opentofu.auto.tfvars | ||
| README.md | ||
| terraform.tfstate | ||
| variables.tf | ||
OpenTofu k3s Pipeline
This pipeline re-deploys the Prole environment into a k3s cluster using OpenTofu.
Usage
- Ensure
opentofu.auto.tfvarsis populated (install.py will generate it). - Sync manifests into
deploy/opentofu/k3s/manifests. - Run:
tofu init
tofu plan
tofu apply
Files
main.tf: Applies Kubernetes manifests with the configured namespace.variables.tf: Pipeline inputs (server URL, token, namespace).opentofu.auto.tfvars: Auto-generated values from Prole install/config.manifests/: Copy ofk8s/manifests to re-deploy.