Merge pull request #3058 from vasrem/feature_add_etcd_quota_backend_bytes
Add ETCD_QUOTA_BACKEND_BYTES environment variable
This commit is contained in:
commit
1ddc420e39
4 changed files with 13 additions and 0 deletions
|
@ -145,6 +145,11 @@ bin_dir: /usr/local/bin
|
||||||
## Set this if your etcd nodes have less than 4GB but you want more RAM for etcd. Set to 0 for unrestricted RAM.
|
## Set this if your etcd nodes have less than 4GB but you want more RAM for etcd. Set to 0 for unrestricted RAM.
|
||||||
#etcd_memory_limit: "512M"
|
#etcd_memory_limit: "512M"
|
||||||
|
|
||||||
|
## Etcd has a default of 2G for its space quota. If you put a value in etcd_memory_limit which is less than
|
||||||
|
## etcd_quota_backend_bytes, you may encounter out of memory terminations of the etcd cluster. Please check
|
||||||
|
## etcd documentation for more information.
|
||||||
|
#etcd_quota_backend_bytes: "2G"
|
||||||
|
|
||||||
# The read-only port for the Kubelet to serve on with no authentication/authorization. Uncomment to enable.
|
# The read-only port for the Kubelet to serve on with no authentication/authorization. Uncomment to enable.
|
||||||
#kube_read_only_port: 10255
|
#kube_read_only_port: 10255
|
||||||
|
|
||||||
|
|
|
@ -45,6 +45,8 @@ etcd_extra_vars: {}
|
||||||
# Limit memory only if <4GB memory on host. 0=unlimited
|
# Limit memory only if <4GB memory on host. 0=unlimited
|
||||||
etcd_memory_limit: "{% if ansible_memtotal_mb < 4096 %}512M{% else %}0{% endif %}"
|
etcd_memory_limit: "{% if ansible_memtotal_mb < 4096 %}512M{% else %}0{% endif %}"
|
||||||
|
|
||||||
|
# etcd_quota_backend_bytes: "2G"
|
||||||
|
|
||||||
# Uncomment to set CPU share for etcd
|
# Uncomment to set CPU share for etcd
|
||||||
# etcd_cpu_limit: 300m
|
# etcd_cpu_limit: 300m
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,9 @@ ETCD_AUTO_COMPACTION_RETENTION={{ etcd_compaction_retention }}
|
||||||
{% if etcd_snapshot_count is defined %}
|
{% if etcd_snapshot_count is defined %}
|
||||||
ETCD_SNAPSHOT_COUNT={{ etcd_snapshot_count }}
|
ETCD_SNAPSHOT_COUNT={{ etcd_snapshot_count }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if etcd_quota_backend_bytes is defined %}
|
||||||
|
ETCD_QUOTA_BACKEND_BYTES={{ etcd_quota_backend_bytes }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
# TLS settings
|
# TLS settings
|
||||||
ETCD_TRUSTED_CA_FILE={{ etcd_cert_dir }}/ca.pem
|
ETCD_TRUSTED_CA_FILE={{ etcd_cert_dir }}/ca.pem
|
||||||
|
|
|
@ -17,6 +17,9 @@ ETCD_AUTO_COMPACTION_RETENTION={{ etcd_compaction_retention }}
|
||||||
{% if etcd_snapshot_count is defined %}
|
{% if etcd_snapshot_count is defined %}
|
||||||
ETCD_SNAPSHOT_COUNT={{ etcd_snapshot_count }}
|
ETCD_SNAPSHOT_COUNT={{ etcd_snapshot_count }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if etcd_quota_backend_bytes is defined %}
|
||||||
|
ETCD_QUOTA_BACKEND_BYTES={{ etcd_quota_backend_bytes }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
# TLS settings
|
# TLS settings
|
||||||
ETCD_TRUSTED_CA_FILE={{ etcd_cert_dir }}/ca.pem
|
ETCD_TRUSTED_CA_FILE={{ etcd_cert_dir }}/ca.pem
|
||||||
|
|
Loading…
Reference in a new issue