mirror of
https://github.com/vhaudiquet/homeprod.git
synced 2026-09-12 04:01:14 +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
|
||||
@@ -0,0 +1,4 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- recurring-jobs.yaml
|
||||
+1
-1
@@ -31,4 +31,4 @@ spec:
|
||||
labels:
|
||||
type: backup
|
||||
groups:
|
||||
- default
|
||||
- default
|
||||
@@ -5,7 +5,6 @@ resources:
|
||||
- namespace.yaml
|
||||
- repository.yaml
|
||||
- release.yaml
|
||||
- recurring-jobs.yaml
|
||||
secretGenerator:
|
||||
- name: longhorn-values
|
||||
files:
|
||||
|
||||
Reference in New Issue
Block a user