mirror of
https://github.com/michaelthomson0797/fleet-infra.git
synced 2026-02-04 13:09:53 +00:00
longhorn recurring job CRDs
This commit is contained in:
12
infrastructure/configs/longhorn/recurring-job-backup.yaml
Normal file
12
infrastructure/configs/longhorn/recurring-job-backup.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
apiVersion: longhorn.io/v1beta2
|
||||
kind: RecurringJob
|
||||
metadata:
|
||||
name: backup
|
||||
namespace: longhorn-system
|
||||
spec:
|
||||
cron: "0 1 * * *"
|
||||
task: "backup"
|
||||
groups:
|
||||
- backup
|
||||
retain: 10
|
||||
concurrency: 1
|
||||
12
infrastructure/configs/longhorn/recurring-job-snapshot.yaml
Normal file
12
infrastructure/configs/longhorn/recurring-job-snapshot.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
apiVersion: longhorn.io/v1beta2
|
||||
kind: RecurringJob
|
||||
metadata:
|
||||
name: snapshot
|
||||
namespace: longhorn-system
|
||||
spec:
|
||||
cron: "0 * * * *"
|
||||
task: "snapshot"
|
||||
groups:
|
||||
- snapshot
|
||||
retain: 24
|
||||
concurrency: 2
|
||||
12
infrastructure/configs/longhorn/recurring-job-trim.yaml
Normal file
12
infrastructure/configs/longhorn/recurring-job-trim.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
apiVersion: longhorn.io/v1beta2
|
||||
kind: RecurringJob
|
||||
metadata:
|
||||
name: trim
|
||||
namespace: longhorn-system
|
||||
spec:
|
||||
cron: "30 0 * * *"
|
||||
task: "filesystem-trim"
|
||||
groups:
|
||||
- trim
|
||||
retain: 0
|
||||
concurrency: 1
|
||||
@@ -18,10 +18,20 @@ spec:
|
||||
defaultClassReplicaCount: 3
|
||||
recurringJobSelector:
|
||||
enable: true
|
||||
jobList: [
|
||||
{"name":"backup", "isGroup":true},
|
||||
{"name":"snapshot", "isGroup":true},
|
||||
{"name":"trim", "isGroup":true},
|
||||
jobList: |
|
||||
[
|
||||
{
|
||||
"name":"backup",
|
||||
"isGroup":true
|
||||
},
|
||||
{
|
||||
"name":"snapshot",
|
||||
"isGroup":true
|
||||
}
|
||||
{
|
||||
"name":"trim",
|
||||
"isGroup":true
|
||||
}
|
||||
]
|
||||
|
||||
defaultSettings:
|
||||
|
||||
Reference in New Issue
Block a user