mirror of
https://github.com/vhaudiquet/homeprod.git
synced 2026-09-13 12:41:13 +00:00
flux: re-order longhorn jobs for right dependencies
This commit is contained in:
@@ -9,3 +9,5 @@ resources:
|
||||
- cert-manager-issuer.yaml
|
||||
- caddy-certificates.yaml
|
||||
- stalwart-certificates.yaml
|
||||
- longhorn.yaml
|
||||
- longhorn-jobs.yaml
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
# Flux Kustomization for Longhorn recurring jobs
|
||||
# Depends on Longhorn being fully operational (CRDs installed)
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: longhorn-jobs
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 10m
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: homeprod
|
||||
path: ./kubernetes/system/longhorn-jobs
|
||||
dependsOn:
|
||||
- name: longhorn
|
||||
decryption:
|
||||
provider: sops
|
||||
secretRef:
|
||||
name: flux-sops
|
||||
@@ -0,0 +1,24 @@
|
||||
# Flux Kustomization for Longhorn
|
||||
# Separate from main homeprod because Longhorn CRDs must be installed
|
||||
# before RecurringJob resources can be applied
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: longhorn
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 10m
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: homeprod
|
||||
path: ./kubernetes/system/longhorn
|
||||
decryption:
|
||||
provider: sops
|
||||
secretRef:
|
||||
name: flux-sops
|
||||
healthChecks:
|
||||
- apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
name: longhorn-manager
|
||||
namespace: longhorn-system
|
||||
Reference in New Issue
Block a user