mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 13:54:37 +03:00
etcd: enable v2 api only if needed (#8001)
* etcd: enable v2 api only if needed Only enable v2 API if we have a consumer (flannel) This reduce the exposed surface for etcd. * Fix bad group name
This commit is contained in:
@@ -32,8 +32,9 @@ ETCD_MAX_SNAPSHOTS={{ etcd_max_snapshots }}
|
|||||||
{% if etcd_max_wals is defined %}
|
{% if etcd_max_wals is defined %}
|
||||||
ETCD_MAX_WALS={{ etcd_max_wals }}
|
ETCD_MAX_WALS={{ etcd_max_wals }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
# Flannel need etcd v2 API
|
{% if hostvars[groups['k8s_cluster'][0]]['kube_network_plugin'] == 'flannel' %}
|
||||||
ETCD_ENABLE_V2=true
|
ETCD_ENABLE_V2=true
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
# TLS settings
|
# TLS settings
|
||||||
ETCD_TRUSTED_CA_FILE={{ etcd_cert_dir }}/ca.pem
|
ETCD_TRUSTED_CA_FILE={{ etcd_cert_dir }}/ca.pem
|
||||||
|
|||||||
Reference in New Issue
Block a user