|
@ -14,7 +14,7 @@ KUBELET_ADDRESS="--address={{ ip | default("0.0.0.0") }}" |
|
|
# The port for the info server to serve on |
|
|
# The port for the info server to serve on |
|
|
# KUBELET_PORT="--port=10250" |
|
|
# KUBELET_PORT="--port=10250" |
|
|
# You may leave this blank to use the actual hostname |
|
|
# You may leave this blank to use the actual hostname |
|
|
KUBELET_HOSTNAME="--hostname-override={{ inventory_hostname }}" |
|
|
|
|
|
|
|
|
KUBELET_HOSTNAME="--hostname-override={{ ansible_hostname }}" |
|
|
{% if inventory_hostname in groups['kube-master'] and inventory_hostname not in groups['kube-node'] %} |
|
|
{% if inventory_hostname in groups['kube-master'] and inventory_hostname not in groups['kube-node'] %} |
|
|
KUBELET_REGISTER_NODE="--register-node=false" |
|
|
KUBELET_REGISTER_NODE="--register-node=false" |
|
|
{% endif %} |
|
|
{% endif %} |
|
|