Skip to content

Commit ae21387

Browse files
author
Aaron Schlesinger
committed
doc(configuring-object-storage.md): add section on storing credentials & GCS
also adds the database component to the list of things that needs S3
1 parent 1c5124b commit ae21387

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

src/installing-deis/configuring-object-storage.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ A variety of Deis components rely on an object storage system to do their work.
66
- [slugbuilder](https://github.com/deis/slugbuilder)
77
- [slugrunner](https://github.com/deis/slugrunner)
88
- [registry](https://github.com/deis/registry)
9+
- [database](https://github.com/deis/postgres)
910

1011
These components are built flexibly, so they can work out of the box with almost any system that is compatible with the [S3 API](http://docs.aws.amazon.com/AmazonS3/latest/API/APIRest.html).
1112

@@ -20,6 +21,32 @@ The Deis components determine what object storage system to use via environment
2021
- `DEIS_MINIO_SERVICE_HOST` and `DEIS_MINIO_SERVICE_PORT` - The in-cluster Minio service
2122
- `DEIS_OUTSIDE_STORAGE_HOST` and `DEIS_OUTSIDE_STORAGE_PORT` - The external S3-compatible object storage system
2223

24+
# Storing Credentials
25+
26+
In the Deis V2 Beta release, all components read credentials from the filesystem, and we suggest that credentials are stored in [Kubernetes secrets](http://kubernetes.io/v1.1/docs/user-guide/secrets.html) and mounted to the appropriate location for the component. See the below list for the expected location for each component, and see [the deis-dev chart](https://github.com/deis/charts/tree/master/deis-dev) for examples of using and mounting secrets.
27+
28+
- [builder](https://github.com/deis/builder)
29+
- Key: `/var/run/secrets/object/store/access-key-id`
30+
- Secret `/var/run/secrets/object/store/access-key-secret`
31+
- [slugbuilder](https://github.com/deis/slugbuilder)
32+
- Key: `/var/run/secrets/object/store/access-key-id`
33+
- Secret `/var/run/secrets/object/store/access-key-secret`
34+
- [slugrunner](https://github.com/deis/slugrunner)
35+
- Key: `/var/run/secrets/object/store/access-key-id`
36+
- Secret: `/var/run/secrets/object/store/access-key-secret`
37+
- [registry](https://github.com/deis/registry)
38+
- Key: `/var/run/secrets/deis/registry/creds/accesskey`
39+
- Secret: `/var/run/secrets/deis/registry/creds/secretkey`
40+
- [database](https://github.com/deis/postgres)
41+
- Key: `/etc/wal-e.d/env/access-key-id`
42+
- Secret: `/etc/wal-e.d/env/access-key-secret`
43+
44+
# A Note on Google Cloud Storage
45+
46+
As you may know Google Cloud Storage (GCS) can [interoperate with the S3 API](https://cloud.google.com/storage/docs/interoperability), and, if you choose to use Google Cloud Storage for object storage, you'll have to turn on this interoperability mode.
47+
48+
If you choose to use Google Cloud Storage, set your `DEIS_OUTSIDE_STORAGE_HOST` environment variable to `storage.googleapis.com`, and follow [these instructions](https://cloud.google.com/storage/docs/migrating?hl=en_US#keys) to generate an S3 compatible access key ID and access key secret. Store these credentials just as you would if they were AWS S3 or Minio credentials (see the "Storing Credentials" section above).
49+
2350
# Limitations
2451

2552
The only currently known limitation is that [the Deis registry component](https://github.com/deis/registry) will not automatically look up the minio service, nor will it look for other storage env vars. That fix is being tracked in a [GitHub issue](https://github.com/deis/registry/issues/7) and is planned for our beta release.

0 commit comments

Comments
 (0)