-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
operations: Add docs for bucket replicate tool
- Loading branch information
1 parent
dff6cd7
commit f77b2af
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 - | ||
``` | ||
|
||
|