Skip to content

Commit 67f6a93

Browse files
committed
feat(storage): add obc for wave5 backups
1 parent 4680c62 commit 67f6a93

4 files changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/kustomization-kustomize-v1.json
3+
apiVersion: kustomize.toolkit.fluxcd.io/v1
4+
kind: Kustomization
5+
metadata:
6+
name: backups
7+
spec:
8+
path: ./kubernetes/apps/storage/backups/ks
9+
prune: true
10+
sourceRef:
11+
kind: GitRepository
12+
name: flux-system
13+
namespace: flux-system
14+
interval: 1h
15+
retryInterval: 2m
16+
timeout: 5m
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
3+
apiVersion: kustomize.config.k8s.io/v1beta1
4+
kind: Kustomization
5+
resources:
6+
- ./objectbucketclaim.yaml
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
apiVersion: objectbucket.io/v1alpha1
3+
kind: ObjectBucketClaim
4+
metadata:
5+
name: wave5-backup
6+
annotations:
7+
kustomize.toolkit.fluxcd.io/prune: disabled
8+
spec:
9+
bucketName: wave5-backup
10+
storageClassName: ceph-bucket

kubernetes/apps/storage/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
44
kind: Kustomization
55
resources:
66
- ./namespace.yaml
7+
- ./backups/ks.yaml
78
- ./kantai1-samba/ks.yaml
89
- ./kantai3-samba/ks.yaml
910
- ./maintenance/ks.yaml

0 commit comments

Comments
 (0)