2016-01-19 14:23:19 +00:00
|
|
|
---
|
2017-03-03 20:30:37 +00:00
|
|
|
# Set to false to only do certificate management
|
|
|
|
etcd_cluster_setup: true
|
2018-04-01 16:58:08 +00:00
|
|
|
etcd_events_cluster_setup: false
|
2017-03-03 20:30:37 +00:00
|
|
|
|
2017-06-27 13:12:34 +00:00
|
|
|
etcd_backup_prefix: "/var/backups"
|
2017-02-24 14:58:54 +00:00
|
|
|
etcd_data_dir: "/var/lib/etcd"
|
2018-03-01 08:39:14 +00:00
|
|
|
etcd_events_data_dir: "/var/lib/etcd-events"
|
2016-11-09 10:44:41 +00:00
|
|
|
|
|
|
|
etcd_config_dir: /etc/ssl/etcd
|
|
|
|
etcd_cert_dir: "{{ etcd_config_dir }}/ssl"
|
2017-02-06 12:58:54 +00:00
|
|
|
etcd_cert_group: root
|
2018-01-09 11:37:34 +00:00
|
|
|
# Note: This does not set up DNS entries. It simply adds the following DNS
|
|
|
|
# entries to the certificate
|
|
|
|
etcd_cert_alt_names:
|
2018-03-30 11:29:13 +00:00
|
|
|
- "etcd.kube-system.svc.{{ dns_domain }}"
|
|
|
|
- "etcd.kube-system.svc"
|
|
|
|
- "etcd.kube-system"
|
2018-01-09 11:37:34 +00:00
|
|
|
- "etcd"
|
2016-11-09 10:44:41 +00:00
|
|
|
|
|
|
|
etcd_script_dir: "{{ bin_dir }}/etcd-scripts"
|
2016-12-23 14:44:44 +00:00
|
|
|
|
2017-02-07 14:46:02 +00:00
|
|
|
etcd_heartbeat_interval: "250"
|
|
|
|
etcd_election_timeout: "5000"
|
|
|
|
|
2018-03-28 14:30:00 +00:00
|
|
|
# etcd_snapshot_count: "10000"
|
2018-03-26 14:25:51 +00:00
|
|
|
|
|
|
|
# Parameters for ionice
|
|
|
|
# -c takes an integer between 0 and 3 or one of the strings none, realtime, best-effort or idle.
|
|
|
|
# -n takes an integer between 0 (highest priority) and 7 (lowest priority)
|
2018-03-28 14:30:00 +00:00
|
|
|
# etcd_ionice: "-c2 -n0"
|
2018-03-26 14:25:51 +00:00
|
|
|
|
2017-07-24 08:25:38 +00:00
|
|
|
etcd_metrics: "basic"
|
|
|
|
|
2016-12-23 14:44:44 +00:00
|
|
|
# Limits
|
2017-10-25 09:25:15 +00:00
|
|
|
# Limit memory only if <4GB memory on host. 0=unlimited
|
|
|
|
etcd_memory_limit: "{% if ansible_memtotal_mb < 4096 %}512M{% else %}0{% endif %}"
|
2017-02-07 14:46:02 +00:00
|
|
|
|
|
|
|
# Uncomment to set CPU share for etcd
|
2017-08-24 09:09:52 +00:00
|
|
|
# etcd_cpu_limit: 300m
|
2017-02-08 21:41:36 +00:00
|
|
|
|
2017-09-25 11:20:24 +00:00
|
|
|
etcd_blkio_weight: 1000
|
|
|
|
|
2018-02-22 12:08:50 +00:00
|
|
|
etcd_node_cert_hosts: "{{ groups['k8s-cluster'] | union(groups.get('calico-rr', [])) | union(groups.get('vault', [])) }}"
|
2017-06-14 08:39:38 +00:00
|
|
|
|
2017-08-20 10:55:48 +00:00
|
|
|
etcd_compaction_retention: "8"
|
2017-08-30 13:03:22 +00:00
|
|
|
|
|
|
|
etcd_vault_mount_path: etcd
|
2017-11-07 14:06:16 +00:00
|
|
|
|
|
|
|
# Force clients like etcdctl to use TLS certs (different than peer security)
|
|
|
|
etcd_secure_client: true
|
2018-01-11 18:07:43 +00:00
|
|
|
|
|
|
|
# Enable peer client cert authentication
|
|
|
|
etcd_peer_client_auth: true
|