add configurable parameter for etcd_auto_compaction_retention

This commit is contained in:
Gregory Storme 2017-06-14 10:39:38 +02:00
parent 7a72b2d558
commit fff0aec720
3 changed files with 6 additions and 0 deletions

View file

@ -98,3 +98,6 @@ bin_dir: /usr/local/bin
## Please specify true if you want to perform a kernel upgrade
kernel_upgrade: false
## Etcd auto compaction retention for mvcc key value store in hour
#etcd_compaction_retention: 0

View file

@ -22,3 +22,5 @@ etcd_memory_limit: 512M
#etcd_cpu_limit: 300m
etcd_node_cert_hosts: "{{ groups['k8s-cluster'] | union(groups.get('calico-rr', [])) }}"
etcd_compaction_retention: "0"

View file

@ -11,6 +11,7 @@ ETCD_LISTEN_PEER_URLS=https://{{ etcd_address }}:2380
ETCD_NAME={{ etcd_member_name }}
ETCD_PROXY=off
ETCD_INITIAL_CLUSTER={{ etcd_peer_addresses }}
ETCD_AUTO_COMPACTION_RETENTION={{ etcd_compaction_retention }}
# TLS settings
ETCD_TRUSTED_CA_FILE={{ etcd_cert_dir }}/ca.pem