Skip to content

Commit bb0093d

Browse files
committed
cleanup
1 parent 4d30c82 commit bb0093d

File tree

1 file changed

+0
-109
lines changed

1 file changed

+0
-109
lines changed

Readme.md

Lines changed: 0 additions & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -52,113 +52,4 @@ On Kubernetes and Kubernetes-based environments, the image uses the k8-etcd, oth
5252

5353
docker exec -it CONTAINERID /bin/bash
5454

55-
<p> Customize Image via ENV</p>
56-
Environment Configuration Settings
5755

58-
ETCD_HOST: the DNS A record pointing to Etcd hosts.
59-
ETCD_HOSTS: list of Etcd hosts in format '"host1:port1","host2:port2",...,"hostN:portN"'.
60-
ETCD_DISCOVERY_DOMAIN: the DNS SRV record pointing to Etcd hosts.
61-
ETCD_URL: url for Etcd host in format http(s)://host1:port
62-
ETCD_PROXY: url for Etcd Proxy format http(s)://host1:port
63-
ETCD_CACERT: Etcd CA certificate. If present it will enable validation.
64-
ETCD_CERT: Etcd client certificate.
65-
ETCD_KEY: Etcd client certificate key. Can be empty if the key is part of certificate.
66-
PGHOME: filesystem path where to put PostgreSQL home directory (/home/postgres by default)
67-
APIPORT: TCP port to Patroni API connections (8008 by default)
68-
BACKUP_SCHEDULE: cron schedule for doing backups via WAL-E (if WAL-E is enabled, '00 01 * * *' by default)
69-
CLONE_TARGET_TIMELINE: timeline id of the backup for restore, 'latest' by default.
70-
CRONTAB: anything that you want to run periodically as a cron job (empty by default)
71-
PGROOT: a directory where we put the pgdata (by default /home/postgres/pgroot). One may adjust it to point to the mount point of the persistent volume, such as EBS.
72-
WALE_TMPDIR: directory to store WAL-E temporary files. PGROOT/../tmp by default, make sure it has a few GBs of free space.
73-
PGDATA: location of PostgreSQL data directory, by default PGROOT/pgdata.
74-
PGUSER_STANDBY: username for the replication user, 'standby' by default.
75-
PGPASSWORD_STANDBY: a password for the replication user, 'standby' by default.
76-
STANDBY_HOST: hostname or IP address of the primary to stream from.
77-
STANDBY_PORT: TCP port on which the primary is listening for connections. Patroni will use "5432" if not set.
78-
STANDBY_PRIMARY_SLOT_NAME: replication slot to use on the primary.
79-
PGUSER_ADMIN: username for the default admin user, 'admin' by default.
80-
PGPASSWORD_ADMIN: a password for the default admin user, 'cola' by default.
81-
USE_ADMIN: whether to use the admin user or not.
82-
PGUSER_SUPERUSER: username for the superuser, 'postgres' by default.
83-
PGPASSWORD_SUPERUSER: a password for the superuser, 'zalando' by default
84-
ALLOW_NOSSL: set to allow clients to connect without SSL enabled.
85-
PGPORT: port PostgreSQL listens to for client connections, 5432 by default
86-
PGVERSION: Specifies the version of postgreSQL to reference in the bin_dir variable (/usr/lib/postgresql/PGVERSION/bin) if postgresql.bin_dir wasn't set in SPILO_CONFIGURATION
87-
SCOPE: cluster name, multiple Spilos belonging to the same cluster must have identical scope.
88-
SSL_CA_FILE: path to the SSL CA certificate file inside the container (by default: '')
89-
SSL_CRL_FILE: path to the SSL Certificate Revocation List file inside the container (by default: '')
90-
SSL_CERTIFICATE_FILE: path to the SSL certificate file inside the container (by default /run/certs/server.crt), Spilo will generate one if not present.
91-
SSL_PRIVATE_KEY_FILE: path to the SSL private key within the container (by default /run/certs/server.key), Spilo will generate one if not present
92-
SSL_CA: content of the SSL CA certificate in the SSL_CA_FILE file (by default: '')
93-
SSL_CRL: content of the SSL Certificate Revocation List in the SSL_CRL_FILE file (by default: '')
94-
SSL_CERTIFICATE: content of the SSL certificate in the SSL_CERTIFICATE_FILE file (by default /run/certs/server.crt).
95-
SSL_PRIVATE_KEY: content of the SSL private key in the SSL_PRIVATE_KEY_FILE file (by default /run/certs/server.key).
96-
SSL_RESTAPI_CA_FILE: path to the Patroni REST Api SSL CA certificate file inside the container (by default: '')
97-
SSL_RESTAPI_CERTIFICATE_FILE: path to the Patroni REST Api SSL certificate file inside the container (by default /run/certs/restapi.crt), Spilo will generate one if not present.
98-
SSL_RESTAPI_PRIVATE_KEY_FILE: path to the Patroni REST Api SSL private key within the container (by default /run/certs/restapi.key), Spilo will generate one if not present
99-
SSL_RESTAPI_CA: content of the Patroni REST Api SSL CA certificate in the SSL_RESTAPI_CA_FILE file (by default: '')
100-
SSL_RESTAPI_CERTIFICATE: content of the REST Api SSL certificate in the SSL_CERTIFICATE_FILE file (by default /run/certs/server.crt).
101-
SSL_RESTAPI_PRIVATE_KEY: content of the REST Api SSL private key in the SSL_PRIVATE_KEY_FILE file (by default /run/certs/server.key).
102-
SSL_TEST_RELOAD: whenever to test for certificate rotation and reloading (by default True if SSL_PRIVATE_KEY_FILE has been set).
103-
RESTAPI_CONNECT_ADDRESS: when you configure Patroni RESTAPI in SSL mode some safe API (i.e. switchover) perform hostname validation. In this case could be convenient configure ````restapi.connect_address````as a hostname instead of IP. For example, you can configure it as "$(POD_NAME).<service name>".
104-
WALE_BACKUP_THRESHOLD_MEGABYTES: maximum size of the WAL segments accumulated after the base backup to consider WAL-E restore instead of pg_basebackup.
105-
WALE_BACKUP_THRESHOLD_PERCENTAGE: maximum ratio (in percents) of the accumulated WAL files to the base backup to consider WAL-E restore instead of pg_basebackup.
106-
WALE_ENV_DIR: directory where to store WAL-E environment variables
107-
WAL_RESTORE_TIMEOUT: timeout (in seconds) for restoring a single WAL file (at most 16 MB) from the backup location, 0 by default. A duration of 0 disables the timeout.
108-
WAL_S3_BUCKET: (optional) name of the S3 bucket used for WAL-E base backups.
109-
AWS_ACCESS_KEY_ID: (optional) aws access key
110-
AWS_SECRET_ACCESS_KEY: (optional) aws secret key
111-
AWS_REGION: (optional) region of S3 bucket
112-
AWS_ENDPOINT: (optional) in format 'https://s3.AWS_REGION.amazonaws.com:443', if not specified will be calculated from AWS_REGION
113-
WALE_S3_ENDPOINT: (optional) in format 'https+path://s3.AWS_REGION.amazonaws.com:443', if not specified will be calculated from AWS_ENDPOINT or AWS_REGION
114-
WALE_S3_PREFIX: (optional) the full path to the backup location on S3 in the format s3://bucket-name/very/long/path. If not specified Spilo will generate it from WAL_S3_BUCKET.
115-
WAL_GS_BUCKET: ditto for the Google Cloud Storage (WAL-E supports both S3 and GCS).
116-
WALE_GS_PREFIX: (optional) the full path to the backup location on the Google Cloud Storage in the format gs://bucket-name/very/long/path. If not specified Spilo will generate it from WAL_GS_BUCKET.
117-
GOOGLE_APPLICATION_CREDENTIALS: credentials for WAL-E when running in Google Cloud.
118-
WAL_SWIFT_BUCKET: ditto for the OpenStack Object Storage (Swift)
119-
SWIFT_AUTHURL: see wal-e documentation https://github.com/wal-e/wal-e#swift
120-
SWIFT_TENANT:
121-
SWIFT_TENANT_ID:
122-
SWIFT_USER:
123-
SWIFT_USER_ID:
124-
SWIFT_PASSWORD:
125-
SWIFT_AUTH_VERSION:
126-
SWIFT_ENDPOINT_TYPE:
127-
SWIFT_REGION:
128-
SWIFT_DOMAIN_NAME:
129-
SWIFT_DOMAIN_ID:
130-
SWIFT_USER_DOMAIN_NAME:
131-
SWIFT_USER_DOMAIN_ID:
132-
SWIFT_PROJECT_NAME:
133-
SWIFT_PROJECT_ID:
134-
SWIFT_PROJECT_DOMAIN_NAME:
135-
SWIFT_PROJECT_DOMAIN_ID:
136-
WALE_SWIFT_PREFIX: (optional) the full path to the backup location on the Swift Storage in the format swift://bucket-name/very/long/path. If not specified Spilo will generate it from WAL_SWIFT_BUCKET.
137-
SSH_USERNAME: (optional) the username for WAL backups.
138-
SSH_PORT: (optional) the ssh port for WAL backups.
139-
SSH_PRIVATE_KEY_PATH: (optional) the path to the private key used for WAL backups.
140-
AZURE_STORAGE_ACCOUNT: (optional) the azure storage account to use for WAL backups.
141-
AZURE_STORAGE_ACCESS_KEY: (optional) the access key for the azure storage account used for WAL backups.
142-
AZURE_CLIENT_ID: (optional) Client (application) ID of the Service Principal
143-
AZURE_CLIENT_SECRET: (optional) Client secret of the Service Principal
144-
AZURE_TENANT_ID: (optional) Tenant ID of the Service Principal
145-
CALLBACK_SCRIPT: the callback script to run on various cluster actions (on start, on stop, on restart, on role change). The script will receive the cluster name, connection string and the current action. See Patroni documentation for details.
146-
LOG_S3_BUCKET: path to the S3 bucket used for PostgreSQL daily log files (i.e. foobar, without s3:// prefix). Spilo will add /spilo/{LOG_BUCKET_SCOPE_PREFIX}{SCOPE}{LOG_BUCKET_SCOPE_SUFFIX}/log/ to that path. Logs are shipped if this variable is set.
147-
LOG_S3_TAGS: map of key value pairs to be used for tagging files uploaded to S3. Values should be referencing existing environment variables e.g. {"ClusterName": "SCOPE", "Namespace": "POD_NAMESPACE"}
148-
LOG_SHIP_HOURLY: if true, log rotation in Postgres is set to 1h incl. foreign tables for every hour (schedule 1 */1 * * *)
149-
LOG_SHIP_SCHEDULE: cron schedule for shipping compressed logs from pg_log (1 0 * * * by default)
150-
LOG_ENV_DIR: directory to store environment variables necessary for log shipping
151-
LOG_TMPDIR: directory to store temporary compressed daily log files. PGROOT/../tmp by default.
152-
LOG_S3_ENDPOINT: (optional) S3 Endpoint to use with Boto3
153-
LOG_BUCKET_SCOPE_PREFIX: (optional) using to build S3 file path like /spilo/{LOG_BUCKET_SCOPE_PREFIX}{SCOPE}{LOG_BUCKET_SCOPE_SUFFIX}/log/
154-
LOG_BUCKET_SCOPE_SUFFIX: (optional) same as above
155-
LOG_GROUP_BY_DATE: (optional) enable grouping log by date. Default is False - group the log files based on the instance ID.
156-
DCS_ENABLE_KUBERNETES_API: a non-empty value forces Patroni to use Kubernetes as a DCS. Default is empty.
157-
KUBERNETES_USE_CONFIGMAPS: a non-empty value makes Patroni store its metadata in ConfigMaps instead of Endpoints when running on Kubernetes. Default is empty.
158-
KUBERNETES_ROLE_LABEL: name of the label containing Postgres role when running on Kubernetens. Default is 'spilo-role'.
159-
KUBERNETES_SCOPE_LABEL: name of the label containing cluster name. Default is 'version'.
160-
KUBERNETES_LABELS: a JSON describing names and values of other labels used by Patroni on Kubernetes to locate its metadata. Default is '{"application": "spilo"}'.
161-
INITDB_LOCALE: database cluster's default UTF-8 locale (en_US by default)
162-
ENABLE_WAL_PATH_COMPAT: old Spilo images were generating wal path in the backup store using the following template /spilo/{WAL_BUCKET_SCOPE_PREFIX}{SCOPE}{WAL_BUCKET_SCOPE_SUFFIX}/wal/, while new images adding one additional directory ({PGVERSION}) to the end. In order to avoid (unlikely) issues with restoring WALs (from S3/GC/and so on) when switching to spilo-13 please set the ENABLE_WAL_PATH_COMPAT=true when deploying old cluster with spilo-13 for the first time. After that the environment variable could be removed. Change of the WAL path also mean that backups stored in the old location will not be cleaned up automatically.
163-
WALE_DISABLE_S3_SSE, WALG_DISABLE_S3_SSE: by default wal-e/wal-g are configured to encrypt files uploaded to S3. In order to disable it you can set this environment variable to true.
164-
USE_OLD_LOCALES: whether to use old locales from Ubuntu 18.04 in the Ubuntu 22.04-based image. Default is false.

0 commit comments

Comments
 (0)