Refer to SatoshiPay's README since this is based on that with a few additions:
- installation of gcloud and gsutil to allow reading and writing into Google Storage buckets
- including a script to check for liveness (for Kubernetes)
livenessProbe:
exec:
command:
- /liveness/check
- http://localhost:11626
initialDelaySeconds: 180
periodSeconds: 180
failureThreshold: 10
Set the env ARCHIVE_HISTORY
to be the name of the history archive that has the put
command. If you started core without this, Stellar recommends that you delete everything -- the database, horizon, and redeploy.
Ensure that you have set ARCHIVE_HISTORY
correctly.
GS_SERVICE_ACCOUNT_KEY
: if you use Google Storage to write history, set this environment variable to your service account key:
{
"type": "service_account",
"project_id": "project-name",
"private_key_id": "0n7n7cnqp84489",
"private_key": "-----BEGIN PRIVATE KEY-----..."
}
Your history can then have something like this for read/write:
{
"local": {
"get": "/gsutil cp gs://bucket-name/prod/01/{0} {1}",
"put": "/gsutil cp {0} gs://bucket-name/prod/01/{1}"
}