diff --git a/kubernetes/defaults/main.yml b/kubernetes/defaults/main.yml index 7966b04..c34d963 100644 --- a/kubernetes/defaults/main.yml +++ b/kubernetes/defaults/main.yml @@ -23,3 +23,11 @@ kubernetes: # One of [traefik-ingress] ingress_controller: traefik-ingress + + config_extra: + # etcd-tuning + # heartbeat: 0.5-1.5x of rtt + # election: 10x- of heartbeat + etcd-arg: + heartbeat-interval: 500 + election-timeout: 5000 diff --git a/kubernetes/templates/k3s/server/config.yaml.jinja2 b/kubernetes/templates/k3s/server/config.yaml.jinja2 index ba68c97..ab58922 100644 --- a/kubernetes/templates/k3s/server/config.yaml.jinja2 +++ b/kubernetes/templates/k3s/server/config.yaml.jinja2 @@ -49,3 +49,4 @@ node-label: - topology.kubernetes.io/zone={{ zone }} {% endif %} +{{ kubernetes.config_extra | to_yaml }}