...
1apiVersion: source.toolkit.fluxcd.io/v1beta2
2kind: Bucket
3metadata:
4 name: bucket
5spec:
6 bucketName: ${gcp_project_id}
7 endpoint: storage.googleapis.com
8 ignore: |-
9 # exclude alll
10 /*
11 # include cluster-specific dir
12 !/${cluster_uuid}
13 interval: 60s
14 provider: gcp
15 timeout: 5m
16---
17apiVersion: kustomize.toolkit.fluxcd.io/v1
18kind: Kustomization
19metadata:
20 name: manifests
21spec:
22 # replace objects that cannot be synced due to the object
23 # being immutable
24 force: true
25 interval: 60s
26 path: "./${cluster_uuid}"
27 # remove objects from the cluster which are removed from
28 # the bucket
29 prune: true
30 sourceRef:
31 name: bucket
32 kind: Bucket
33 timeout: 5m
View as plain text