Skip to content

Commit

Permalink
Show scheme in endpoint for Minio Repository (#118)
Browse files Browse the repository at this point in the history
Signed-off-by: Emruz Hossain <emruz@appscode.com>

Fixes stashed/stash#1280
  • Loading branch information
hossainemruz authored Dec 17, 2020
1 parent 7aa0987 commit 3ba0722
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
12 changes: 12 additions & 0 deletions docs/examples/guides/latest/backends/minio.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: stash.appscode.com/v1alpha1
kind: Repository
metadata:
name: minio-repo
namespace: demo
spec:
backend:
s3:
endpoint: https://my-minio-service.minio-namespace.svc
bucket: stash-demo
prefix: /backup/demo/deployment/stash-demo
storageSecretName: minio-secret
1 change: 1 addition & 0 deletions docs/examples/guides/latest/backends/s3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ spec:
s3:
endpoint: s3.amazonaws.com # use server URL for s3 compatible other storage service
bucket: stash-demo
region: us-west-1
prefix: /backup/demo/deployment/stash-demo
storageSecretName: s3-secret
19 changes: 18 additions & 1 deletion docs/guides/latest/backends/s3.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,24 @@ spec:
storageSecretName: s3-secret
```
Create the `Repository` we have shown above using the following command,
For S3 compatible Minio and other storage services, specify the endpoint with connection scheme (`http`, or `https`),

```yaml
apiVersion: stash.appscode.com/v1alpha1
kind: Repository
metadata:
name: minio-repo
namespace: demo
spec:
backend:
s3:
endpoint: https://my-minio-service.minio-namespace.svc
bucket: stash-demo
prefix: /backup/demo/deployment/stash-demo
storageSecretName: s3-secret
```

Create the `s3-repo` Repository we have shown above using the following command,

```bash
$ kubectl apply -f https://github.com/stashed/docs/raw/{{< param "info.version" >}}/docs/examples/guides/latest/backends/s3.yaml
Expand Down

0 comments on commit 3ba0722

Please sign in to comment.