etcd

Definition

etcd is a distributed key-value store that provides a reliable way to store data across a cluster of machines. It is often used in cloud-native applications to store configuration data, service discovery information, and metadata. etcd is designed to be highly available and consistent, making it a critical component in systems like Kubernetes, where it stores all cluster data.

Secure Settings Example

# etcd configuration with secure settings
name: etcd-server
data-dir: /var/lib/etcd
listen-peer-urls: https://10.0.0.1:2380
listen-client-urls: https://10.0.0.1:2379
advertise-client-urls: https://10.0.0.1:2379
initial-advertise-peer-urls: https://10.0.0.1:2380
cert-file: /etc/etcd/server.crt
key-file: /etc/etcd/server.key
client-cert-auth: true
trusted-ca-file: /etc/etcd/ca.crt
peer-cert-file: /etc/etcd/peer.crt
peer-key-file: /etc/etcd/peer.key
peer-client-cert-auth: true
peer-trusted-ca-file: /etc/etcd/ca.crt

Insecure Settings Example

# etcd configuration with insecure settings
name: etcd-server
data-dir: /var/lib/etcd
listen-peer-urls: http://0.0.0.0:2380
listen-client-urls: http://0.0.0.0:2379
advertise-client-urls: http://0.0.0.0:2379
initial-advertise-peer-urls: http://0.0.0.0:2380
# Missing TLS configuration and authentication settings