etcd/etcd.conf

120 lines
4.6 KiB
Plaintext
Raw Normal View History

# Caution: If you mix-and-match configuration options, then the following rules apply.
# Command-line flags take precedence over environment variables.
# If you provide a configuration file all command-line flags and environment variables are ignored.
# Set commandline options example: ETCD_OPTIONS="--enable-v2=true" to enable the v2 API
#ETCD_OPTIONS=""
# [member]
# Human-readable name for this member.
ETCD_NAME="default"
# Path to the data directory.
ETCD_DATA_DIR="/var/lib/etcd/default.etcd"
# Path to the dedicated wal directory.
#ETCD_WAL_DIR=""
# Number of committed transactions to trigger a snapshot to disk.
#ETCD_SNAPSHOT_COUNT="10000"
# Time (in milliseconds) of a heartbeat interval.
#ETCD_HEARTBEAT_INTERVAL="100"
# Time (in milliseconds) for an election to timeout.
#ETCD_ELECTION_TIMEOUT="1000"
# Raise alarms when backend size exceeds the given quota. 0 means use the
# default quota.
#ETCD_QUOTA_BACKEND_BYTES="0"
# Before changing this setting allowing etcd to be reachable over the network
# or if you have untrustworthy local users on the system where etc runs please
# make sure to enable authentication in the [security] section below.
# Please also read README.security for this package.
# List of comma separated URLs to listen on for peer traffic.
#ETCD_LISTEN_PEER_URLS="http://localhost:2380"
# List of comma separated URLs to listen on for client traffic.
ETCD_LISTEN_CLIENT_URLS="http://localhost:2379"
# Maximum number of snapshot files to retain (0 is unlimited).
#ETCD_MAX_SNAPSHOTS="5"
# Maximum number of wal files to retain (0 is unlimited).
#ETCD_MAX_WALS="5"
# Comma-separated white list of origins for CORS (cross-origin resource sharing).
#ETCD_CORS=""
# Enable runtime profiling data via HTTP server
#ETCD_ENABLE_PPROF="true"
# Force to create a new one member cluster.
#ETCD_FORCE_NEW_CLUSTER="false"
#ETCD_AUTO_COMPACTION_MODE="periodic"
#ETCD_AUTO_COMPACTION_RETENTION="1"
#
# [cluster]
# List of this member's peer URLs to advertise to the rest of the cluster.
# The URLs needed to be a comma-separated list.
#ETCD_INITIAL_ADVERTISE_PEER_URLS="http://localhost:2380"
# List of this member's client URLs to advertise to the public.
# The URLs needed to be a comma-separated list.
ETCD_ADVERTISE_CLIENT_URLS="http://localhost:2379"
# Discovery URL used to bootstrap the cluster.
#ETCD_DISCOVERY=""
# Valid values include 'exit', 'proxy'
#ETCD_DISCOVERY_FALLBACK="proxy"
# HTTP proxy to use for traffic to discovery service.
#ETCD_DISCOVERY_PROXY=""
# DNS domain used to bootstrap initial cluster.
#ETCD_DISCOVERY_SRV=""
# Initial cluster configuration for bootstrapping.
#ETCD_INITIAL_CLUSTER=""
# Initial cluster token for the etcd cluster during bootstrap.
#ETCD_INITIAL_CLUSTER_TOKEN="etcd-cluster"
# Initial cluster state ('new' or 'existing').
#ETCD_INITIAL_CLUSTER_STATE="new"
# Reject reconfiguration requests that would cause quorum loss.
#ETCD_STRICT_RECONFIG_CHECK="false"
# Accept etcd V2 client requests
#ETCD_ENABLE_V2="true"
#
# [security]
# Path to the client server TLS cert file.
#ETCD_CERT_FILE=""
# Path to the client server TLS key file.
#ETCD_KEY_FILE=""
# Enable client cert authentication.
#ETCD_CLIENT_CERT_AUTH="false"
# Path to the client server TLS trusted CA cert file.
#ETCD_TRUSTED_CA_FILE=""
# Client TLS using generated certificates
#ETCD_AUTO_TLS="false"
# Path to the peer server TLS cert file.
#ETCD_PEER_CERT_FILE=""
# Path to the peer server TLS key file.
#ETCD_PEER_KEY_FILE=""
# Enable peer client cert authentication.
#ETCD_PEER_CLIENT_CERT_AUTH="false"
# Path to the peer server TLS trusted CA cert file.
#ETCD_PEER_TRUSTED_CA_FILE=""
# Peer TLS using generated certificates.
#ETCD_PEER_AUTO_TLS="false"
# Allowed CN for inter peer authentication.
#ETCD_PEER_ALLOWED_CN=""
# Allowed TLS hostname for inter peer authentication.
#ETCD_PEER_ALLOWED_HOSTNAME=""
# The validity period of the self-signed certificate, the unit is year.
#ETCD_SELF_SIGNED_CERT_VALIDITY="1"
#
# [logging]
# Enable debug-level logging for etcd.
#ETCD_LOG_LEVEL="debug"
#ETCD_LOGGER="zap"
# Specify 'stdout' or 'stderr' to skip journald logging even when running under systemd.
#ETCD_LOG_OUTPUTS="stderr"
#
# [proxy] Note: flags will be deprecated in v3.6. "proxy" supports v2 API only.
# Valid values include 'on', 'readonly', 'off'
#ETCD_PROXY="off"
# Time (in milliseconds) an endpoint will be held in a failed state.
#ETCD_PROXY_FAILURE_WAIT="5000"
# Time (in milliseconds) of the endpoints refresh interval.
#ETCD_PROXY_REFRESH_INTERVAL="30000"
# Time (in milliseconds) for a dial to timeout.
#ETCD_PROXY_DIAL_TIMEOUT="1000"
# Time (in milliseconds) for a write to timeout.
#ETCD_PROXY_WRITE_TIMEOUT="5000"
# Time (in milliseconds) for a read to timeout.
#ETCD_PROXY_READ_TIMEOUT="0"