Browse Source

add configurable parameter for etcd_auto_compaction_retention

pull/1438/head
Gregory Storme 7 years ago
parent
commit
fff0aec720
3 changed files with 6 additions and 0 deletions
  1. 3
      inventory/group_vars/all.yml
  2. 2
      roles/etcd/defaults/main.yml
  3. 1
      roles/etcd/templates/etcd.env.yml

3
inventory/group_vars/all.yml

@ -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

2
roles/etcd/defaults/main.yml

@ -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"

1
roles/etcd/templates/etcd.env.yml

@ -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

Loading…
Cancel
Save