Skip to content

Commit

Permalink
storage docs: add detail about GCS policies and testing (#1037)
Browse files Browse the repository at this point in the history
* add more details about GCS policies and testing

* remove fixed names from exec command
  • Loading branch information
ufou authored and bwplotka committed Apr 16, 2019
1 parent b2bdff6 commit f3f0518
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion docs/storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,14 +208,28 @@ config:

### GCS Policies

__Note:__ GCS Policies should be applied at the project level, not at the bucket level

For deployment:

`Storage Object Creator` and ` Storage Object Viewer`
`Storage Object Creator` and `Storage Object Viewer`

For testing:

`Storage Object Admin` for ability to create and delete temporary buckets.

To test the policy is working as expected, exec into the sidecar container, eg:

```sh
kubectl exec -it -n <namespace> <prometheus with sidecar pod name> -c <sidecar container name> -- /bin/sh
```

Then test that you can at least list objects in the bucket, eg:

```sh
thanos bucket ls --objstore.config="${OBJSTORE_CONFIG}"
```

## Azure Configuration

To use Azure Storage as Thanos object store, you need to precreate storage account from Azure portal or using Azure CLI. Follow the instructions from Azure Storage Documentation: [https://docs.microsoft.com/en-us/azure/storage/common/storage-quickstart-create-account](https://docs.microsoft.com/en-us/azure/storage/common/storage-quickstart-create-account?tabs=portal)
Expand Down

0 comments on commit f3f0518

Please sign in to comment.