1# This is the configuration file for the etcd server. 2 3# Human-readable name for this member. 4name: 'default' 5 6# Path to the data directory. 7data-dir: 8 9# Path to the dedicated wal directory. 10wal-dir: 11 12# Number of committed transactions to trigger a snapshot to disk. 13snapshot-count: 10000 14 15# Time (in milliseconds) of a heartbeat interval. 16heartbeat-interval: 100 17 18# Time (in milliseconds) for an election to timeout. 19election-timeout: 1000 20 21# Raise alarms when backend size exceeds the given quota. 0 means use the 22# default quota. 23quota-backend-bytes: 0 24 25# List of comma separated URLs to listen on for peer traffic. 26listen-peer-urls: http://localhost:2380 27 28# List of comma separated URLs to listen on for client traffic. 29listen-client-urls: http://localhost:2379 30 31# Maximum number of snapshot files to retain (0 is unlimited). 32max-snapshots: 5 33 34# Maximum number of wal files to retain (0 is unlimited). 35max-wals: 5 36 37# Comma-separated white list of origins for CORS (cross-origin resource sharing). 38cors: 39 40# List of this member's peer URLs to advertise to the rest of the cluster. 41# The URLs needed to be a comma-separated list. 42initial-advertise-peer-urls: http://localhost:2380 43 44# List of this member's client URLs to advertise to the public. 45# The URLs needed to be a comma-separated list. 46advertise-client-urls: http://localhost:2379 47 48# Discovery URL used to bootstrap the cluster. 49discovery: 50 51# Valid values include 'exit', 'proxy' 52discovery-fallback: 'proxy' 53 54# HTTP proxy to use for traffic to discovery service. 55discovery-proxy: 56 57# DNS domain used to bootstrap initial cluster. 58discovery-srv: 59 60# Initial cluster configuration for bootstrapping. 61initial-cluster: 62 63# Initial cluster token for the etcd cluster during bootstrap. 64initial-cluster-token: 'etcd-cluster' 65 66# Initial cluster state ('new' or 'existing'). 67initial-cluster-state: 'new' 68 69# Reject reconfiguration requests that would cause quorum loss. 70strict-reconfig-check: false 71 72# Accept etcd V2 client requests 73enable-v2: true 74 75# Enable runtime profiling data via HTTP server 76enable-pprof: true 77 78# Valid values include 'on', 'readonly', 'off' 79proxy: 'off' 80 81# Time (in milliseconds) an endpoint will be held in a failed state. 82proxy-failure-wait: 5000 83 84# Time (in milliseconds) of the endpoints refresh interval. 85proxy-refresh-interval: 30000 86 87# Time (in milliseconds) for a dial to timeout. 88proxy-dial-timeout: 1000 89 90# Time (in milliseconds) for a write to timeout. 91proxy-write-timeout: 5000 92 93# Time (in milliseconds) for a read to timeout. 94proxy-read-timeout: 0 95 96client-transport-security: 97 # DEPRECATED: Path to the client server TLS CA file. 98 ca-file: 99 100 # Path to the client server TLS cert file. 101 cert-file: 102 103 # Path to the client server TLS key file. 104 key-file: 105 106 # Enable client cert authentication. 107 client-cert-auth: false 108 109 # Path to the client server TLS trusted CA cert file. 110 trusted-ca-file: 111 112 # Client TLS using generated certificates 113 auto-tls: false 114 115peer-transport-security: 116 # DEPRECATED: Path to the peer server TLS CA file. 117 ca-file: 118 119 # Path to the peer server TLS cert file. 120 cert-file: 121 122 # Path to the peer server TLS key file. 123 key-file: 124 125 # Enable peer client cert authentication. 126 peer-client-cert-auth: false 127 128 # Path to the peer server TLS trusted CA cert file. 129 trusted-ca-file: 130 131 # Peer TLS using generated certificates. 132 auto-tls: false 133 134# Enable debug-level logging for etcd. 135debug: false 136 137# Specify a particular log level for each etcd package (eg: 'etcdmain=CRITICAL,etcdserver=DEBUG'. 138log-package-levels: 139 140# Specify 'stdout' or 'stderr' to skip journald logging even when running under systemd. 141log-output: default 142 143# Force to create a new one member cluster. 144force-new-cluster: false 145