mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
39 lines
658 B
Markdown
39 lines
658 B
Markdown
# VolSync Template
|
|
|
|
## Flux Kustomization
|
|
|
|
This requires `postBuild` configured on the Flux Kustomization
|
|
|
|
```yaml
|
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
kind: Kustomization
|
|
metadata:
|
|
name: &app plex
|
|
namespace: flux-system
|
|
spec:
|
|
# ...
|
|
postBuild:
|
|
substitute:
|
|
APP: *app
|
|
VOLSYNC_CAPACITY: 5Gi
|
|
```
|
|
|
|
and then call the template in your applications `kustomization.yaml`
|
|
|
|
```yaml
|
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
kind: Kustomization
|
|
resources:
|
|
# ...
|
|
- ../../../../components/volsync
|
|
```
|
|
|
|
## Required `postBuild` vars:
|
|
|
|
- `APP`: The application name
|
|
- `VOLSYNC_CAPACITY`: The PVC size
|
|
|
|
## Optional `postBuild` vars:
|
|
|
|
- TBD
|