mirror of
https://github.com/dredx/prole.git
synced 2026-09-24 14:54:34 +00:00
23 lines
581 B
Markdown
23 lines
581 B
Markdown
# OpenTofu k3s Pipeline
|
|
|
|
This pipeline re-deploys the Knoe environment into a k3s cluster using OpenTofu.
|
|
|
|
## Usage
|
|
|
|
1) Ensure `opentofu.auto.tfvars` is populated (install.py will generate it).
|
|
2) Sync manifests into `deploy/opentofu/k3s/manifests`.
|
|
3) Run:
|
|
|
|
```bash
|
|
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 Knoe install/config.
|
|
- `manifests/`: Copy of `k8s/` manifests to re-deploy.
|