mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-11-12 21:40:29 +00:00
Enable non_masquerade_cidr option configured in salt.grains
This should allow allow the non_masquerade_cidr option to get configured in /etc/salt/minion.d/grains.conf, allowing the flag to used by kubelet in /etc/sysconfig/kubelet. Default configuration is set in pillar
This commit is contained in:
committed by
Justin Santa Barbara
parent
73017b6de9
commit
e752f2149f
@@ -88,8 +88,8 @@
|
||||
{% endif -%}
|
||||
|
||||
{% set non_masquerade_cidr = "" -%}
|
||||
{% if grains.non_masquerade_cidr is defined -%}
|
||||
{% set non_masquerade_cidr = "--non-masquerade-cidr=" + grains.non_masquerade_cidr -%}
|
||||
{% if pillar.get('non_masquerade_cidr','') is defined -%}
|
||||
{% set non_masquerade_cidr = "--non-masquerade-cidr=" + pillar.non_masquerade_cidr -%}
|
||||
{% endif -%}
|
||||
|
||||
# The master kubelet cannot wait for the flannel daemon because it is responsible
|
||||
|
||||
Reference in New Issue
Block a user