mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-07-06 13:58:09 -02:30
weave network plugin
This commit is contained in:
6
roles/network_plugin/weave/templates/weave.j2
Normal file
6
roles/network_plugin/weave/templates/weave.j2
Normal file
@@ -0,0 +1,6 @@
|
||||
WEAVE_PEERS="{% for host in groups['k8s-cluster'] %}{{ hostvars[host]['ip'] | default( hostvars[host]['ansible_default_ipv4']['address']) }}{% if not loop.last %} {% endif %}{% endfor %}"
|
||||
WEAVEPROXY_ARGS="--rewrite-inspect --without-dns"
|
||||
WEAVE_SUBNET="--ipalloc-range {{ kube_pods_subnet }}"
|
||||
{% if weave_password is defined %}
|
||||
WEAVE_PASSWORD="{{ weave_password }}"
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user