removed labels
This commit is contained in:
@@ -6,8 +6,8 @@ metadata:
|
|||||||
name: daily-config
|
name: daily-config
|
||||||
namespace: openshift-adp
|
namespace: openshift-adp
|
||||||
spec:
|
spec:
|
||||||
schedule: "0 02 * * *" # 2 AM daily
|
schedule: "0 02 * * *" # 2 AM daily
|
||||||
|
|
||||||
# Make backups readable, sortable, unique
|
# Make backups readable, sortable, unique
|
||||||
nameTemplate: "{{ .ScheduleName }}-{{ .Timestamp }}"
|
nameTemplate: "{{ .ScheduleName }}-{{ .Timestamp }}"
|
||||||
|
|
||||||
@@ -15,27 +15,28 @@ spec:
|
|||||||
# Backup all namespaces
|
# Backup all namespaces
|
||||||
includedNamespaces:
|
includedNamespaces:
|
||||||
- "*"
|
- "*"
|
||||||
|
|
||||||
# Labels for filtering and reporting
|
# Labels for filtering and reporting
|
||||||
labels:
|
#labels:
|
||||||
backup-type: config
|
# backup-type: config
|
||||||
schedule: daily
|
# schedule: daily
|
||||||
retention: short
|
# retention: short
|
||||||
|
|
||||||
# Exclude ephemeral/generated resources
|
# Exclude ephemeral/generated resources
|
||||||
excludedResources:
|
excludedResources:
|
||||||
- events
|
- events
|
||||||
- events.events.k8s.io
|
- events.events.k8s.io
|
||||||
- pipelineruns.tekton.dev # Completed pipeline runs
|
- pipelineruns.tekton.dev # Completed pipeline runs
|
||||||
- taskruns.tekton.dev # Completed task runs
|
- taskruns.tekton.dev # Completed task runs
|
||||||
- replicasets.apps # Managed by deployments
|
- replicasets.apps # Managed by deployments
|
||||||
- pods # Recreated by controllers
|
- pods # Recreated by controllers
|
||||||
- endpoints # Auto-generated
|
- endpoints # Auto-generated
|
||||||
- endpointslices.discovery.k8s.io
|
- endpointslices.discovery.k8s.io
|
||||||
|
|
||||||
# No volume data - manifests only
|
# No volume data - manifests only
|
||||||
snapshotVolumes: false
|
snapshotVolumes: false
|
||||||
defaultVolumesToFsBackup: false
|
defaultVolumesToFsBackup: false
|
||||||
|
|
||||||
# 14 days retention
|
# 14 days retention
|
||||||
ttl: 336h
|
ttl: 336h
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ metadata:
|
|||||||
name: daily-stateful
|
name: daily-stateful
|
||||||
namespace: openshift-adp
|
namespace: openshift-adp
|
||||||
spec:
|
spec:
|
||||||
schedule: "0 03 * * *" # 3 AM daily (after config backup)
|
schedule: "0 03 * * *" # 3 AM daily (after config backup)
|
||||||
|
|
||||||
nameTemplate: "{{ .ScheduleName }}-{{ .Timestamp }}"
|
nameTemplate: "{{ .ScheduleName }}-{{ .Timestamp }}"
|
||||||
|
|
||||||
template:
|
template:
|
||||||
@@ -20,12 +20,12 @@ spec:
|
|||||||
- n8n
|
- n8n
|
||||||
- apim
|
- apim
|
||||||
- gitea-ci
|
- gitea-ci
|
||||||
|
|
||||||
labels:
|
#labels:
|
||||||
backup-type: stateful
|
# backup-type: stateful
|
||||||
schedule: daily
|
# schedule: daily
|
||||||
retention: short
|
# retention: short
|
||||||
|
|
||||||
# Exclude ephemeral resources
|
# Exclude ephemeral resources
|
||||||
excludedResources:
|
excludedResources:
|
||||||
- events
|
- events
|
||||||
@@ -34,14 +34,14 @@ spec:
|
|||||||
- taskruns.tekton.dev
|
- taskruns.tekton.dev
|
||||||
- replicasets.apps
|
- replicasets.apps
|
||||||
- pods
|
- pods
|
||||||
|
|
||||||
# Use Kopia for volume backups
|
# Use Kopia for volume backups
|
||||||
snapshotVolumes: false
|
snapshotVolumes: false
|
||||||
defaultVolumesToFsBackup: true
|
defaultVolumesToFsBackup: true
|
||||||
|
|
||||||
# 14 days retention
|
# 14 days retention
|
||||||
ttl: 336h
|
ttl: 336h
|
||||||
|
|
||||||
# Pre-backup hooks for data consistency
|
# Pre-backup hooks for data consistency
|
||||||
hooks:
|
hooks:
|
||||||
resources:
|
resources:
|
||||||
@@ -61,7 +61,7 @@ spec:
|
|||||||
- nodetool flush
|
- nodetool flush
|
||||||
timeout: 5m
|
timeout: 5m
|
||||||
onError: Continue
|
onError: Continue
|
||||||
|
|
||||||
# Gitea PostgreSQL: checkpoint before backup
|
# Gitea PostgreSQL: checkpoint before backup
|
||||||
- name: gitea-postgres-checkpoint
|
- name: gitea-postgres-checkpoint
|
||||||
includedNamespaces:
|
includedNamespaces:
|
||||||
@@ -79,7 +79,7 @@ spec:
|
|||||||
- psql -U postgres -c 'CHECKPOINT;'
|
- psql -U postgres -c 'CHECKPOINT;'
|
||||||
timeout: 2m
|
timeout: 2m
|
||||||
onError: Continue
|
onError: Continue
|
||||||
|
|
||||||
# Authentik PostgreSQL: checkpoint before backup
|
# Authentik PostgreSQL: checkpoint before backup
|
||||||
- name: authentik-postgres-checkpoint
|
- name: authentik-postgres-checkpoint
|
||||||
includedNamespaces:
|
includedNamespaces:
|
||||||
@@ -96,4 +96,5 @@ spec:
|
|||||||
- -c
|
- -c
|
||||||
- psql -U postgres -c 'CHECKPOINT;'
|
- psql -U postgres -c 'CHECKPOINT;'
|
||||||
timeout: 2m
|
timeout: 2m
|
||||||
onError: Continue
|
onError: Continue
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user