variable rename
This commit is contained in:
parent
904a45b7e6
commit
beb2a1304f
4 changed files with 10 additions and 8 deletions
|
@ -76,7 +76,7 @@ kube_network_plugin: weave
|
||||||
weave_password: ~t94S:mweJN}32-K
|
weave_password: ~t94S:mweJN}32-K
|
||||||
|
|
||||||
# Set true for use weave's seed mode
|
# Set true for use weave's seed mode
|
||||||
mode_seed: false
|
weave_mode_seed: true
|
||||||
|
|
||||||
# Enable kubernetes network policies
|
# Enable kubernetes network policies
|
||||||
enable_network_policy: false
|
enable_network_policy: false
|
||||||
|
|
|
@ -3,5 +3,5 @@
|
||||||
# For reset values :
|
# For reset values :
|
||||||
# seed: unset
|
# seed: unset
|
||||||
# peers: unset
|
# peers: unset
|
||||||
seed: unset
|
seed: fa:16:3e:b5:ea:aa,fa:16:3e:47:29:c6
|
||||||
peers: unset
|
peers: 192.168.208.13 192.168.208.9
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
- include: pre-upgrade.yml
|
- include: pre-upgrade.yml
|
||||||
|
|
||||||
- include: seed.yml
|
- include: seed.yml
|
||||||
when: mode_seed == true
|
when: weave_mode_seed == true
|
||||||
|
|
||||||
- name: Weave | enable br_netfilter module
|
- name: Weave | enable br_netfilter module
|
||||||
modprobe:
|
modprobe:
|
||||||
|
|
|
@ -64,10 +64,12 @@ items:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: weave
|
- name: weave
|
||||||
{% if mode_seed == true %}
|
command:
|
||||||
command: ["/bin/sh","-c","export EXTRA_ARGS=--name=$(cat /sys/class/net/{{ ansible_default_ipv4['interface'] }}/address) && /home/weave/launch.sh"]
|
{% if weave_mode_seed == true %}
|
||||||
|
- /bin/sh
|
||||||
|
- -c
|
||||||
|
- export EXTRA_ARGS=--name=$(cat /sys/class/net/ens3/address) && /home/weave/launch.sh
|
||||||
{% else %}
|
{% else %}
|
||||||
command:
|
|
||||||
- /home/weave/launch.sh
|
- /home/weave/launch.sh
|
||||||
{% endif %}
|
{% endif %}
|
||||||
env:
|
env:
|
||||||
|
@ -78,7 +80,7 @@ items:
|
||||||
fieldPath: spec.nodeName
|
fieldPath: spec.nodeName
|
||||||
- name: IPALLOC_RANGE
|
- name: IPALLOC_RANGE
|
||||||
value: {{ kube_pods_subnet }}
|
value: {{ kube_pods_subnet }}
|
||||||
{% if mode_seed == true %}
|
{% if weave_mode_seed == true %}
|
||||||
- name: KUBE_PEERS
|
- name: KUBE_PEERS
|
||||||
value: {{ weave_peers }}
|
value: {{ weave_peers }}
|
||||||
- name: IPALLOC_INIT
|
- name: IPALLOC_INIT
|
||||||
|
|
Loading…
Reference in a new issue