【Deis document】 custom Deis custom store-gateway

Note: This article translated from Deis official documents, without any commercial purposes, reproduced please indicate the source.

The following settings are adjustable for the gateway component of the Store component.

Dependency

Requires : store-daemon , store-monitor
Required by : database , registry
Considerations : none

Store-gateway settings

The following etcd key is set by the store-gateway component, usually in its /bin/boot script.

/ Deis / store / defaultPoolsConfigured : set the gateway configuration at the first start of the default storage pools value
/ Deis / store / gatewayKeyring : gateway user accesses the keyring of Ceph cluster (generated by Ceph)
/ Deis / store / gateway / accessKey : the S3 API used to access the store-gateway (generated by Ceph)
/ Deis / store / gateway / host : The IP address of the store-gateway running

/ Deis / store / gateway / port : port used by the store-gateway service (default: 8888)
/ Deis / store / gateway / secretKey : the S3 API key used to access the store-gateway (generated by Ceph)

The settings used by store-gateway

The following etcd key is used by the store-gateway component.
/ Deis / store / adminKeyring : A keyring for the admin user to access the Ceph cluster (set by store-monitor)
/ Deis / store / fsid : Ceph file system ID (set by store-monitor)
/ Deis / store / hosts / ***: deis-monitor host (set by store-monitor)
** / deis / store / monKeyring : monitor The keyring used to access the Ceph cluster (set by the store-monitor)
/ Deis / store / monSetupComplete : set the Ceph cluster when to complete setup (set by the store-monitor)
/ Deis / store / monSetupLock : the store-monitor host that has been installed (set by store-monitor)
/ Deis / store / minSize : the minimum number of store-daemons that can be written by the cluster (set by store-monitor)
/ Deis / store / pgNum : Cfs placement groups for storage pools (set by store-monitor)
/ Deis / store / size : the number of data copies stored in Ceph (set by store-monitor)

Use a custom store-gateway image

You can use a custom store-gateway component's Dokcer image instead of Deis's mirror:

$ deisctl config store-gateway set image=myaccount/myimage:latest

This will pull the mirror from the public Docker registry. You can also pull from a private tab:

$ deisctl config store-gateway set image=registry.mydomain.org:5000/myaccount/myimage:latest

Make sure your custom mirror function is the same as Deis's own stock store-gateway image . Specifically, it is sure to set it and read the appropriate etcd key.

Heads up! This alert needs your attention, but it's not super important.