Auto-add IPv6DualStack featureGate
When enable_dual_stack_networks is set, we need to make sure IPv6DualStack=true is set too, otherwise we end up with a broken cluster.
This commit is contained in:
parent
3cf5981146
commit
a318624fad
1 changed files with 7 additions and 0 deletions
|
@ -176,3 +176,10 @@
|
||||||
set_fact:
|
set_fact:
|
||||||
kubelet_flexvolumes_plugins_dir: /var/lib/kubelet/volumeplugins
|
kubelet_flexvolumes_plugins_dir: /var/lib/kubelet/volumeplugins
|
||||||
when: not usr.stat.writeable
|
when: not usr.stat.writeable
|
||||||
|
|
||||||
|
- name: Ensure IPv6DualStack featureGate is set when enable_dual_stack_networks is true
|
||||||
|
set_fact:
|
||||||
|
kube_feature_gates: "{{ kube_feature_gates + [ 'IPv6DualStack=true' ] }}"
|
||||||
|
when:
|
||||||
|
- enable_dual_stack_networks
|
||||||
|
- not 'IPv6DualStack=true' in kube_feature_gates
|
||||||
|
|
Loading…
Reference in a new issue