Skip to content

Commit

Permalink
operations: Add docs for bucket replicate tool
Browse files Browse the repository at this point in the history
  • Loading branch information
philipgough committed Aug 2, 2023
1 parent dff6cd7 commit f77b2af
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions resources/operations/bucket-replicate/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# What

This template deploys [Thanos Bucket Inspect](https://thanos.io/tip/components/tools.md/#bucket-insepct)
as a Kubernetes Job.

# SOP

> **_NOTE:_** Before running this Job, if you wish to track progress via logs,
you can run the [Thanos Bucket Inspect](../bucket-inspect/README.md#sop)
Job against the source and the CronJob against the destination to make sure that the source and destination
are in sync.

Create a Kubernetes Secret that contains the credentials for both the target and destination object storage
provider or use the template provided in this directory for S3 compatible object storage providers.


```yaml
---
apiVersion: v1
kind: Secret
metadata:
name: thanos-bucket-replicate-source-config
type: Opaque
stringData:
config.yaml: |
# see https://thanos.io/tip/thanos/storage.md/
---
apiVersion: v1
kind: Secret
metadata:
name: thanos-bucket-replicate-destination-config
type: Opaque
stringData:
config.yaml: |
# see https://thanos.io/tip/thanos/storage.md/
```
Optionally create the PodMonitor to scrape Prometheus metrics from the Job
```bash
oc process -f monitoring-template.yaml | oc apply -f -
```

Process the template and run the Job

```bash
oc process -f job-template.yaml | oc apply -f -
```


0 comments on commit f77b2af

Please sign in to comment.