prole/deploy/opentofu/k3s/README.md

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.