-{{- end }}
-{{- if .Values.networks }}
- # Without touching up /etc/hosts, kubeadm may pick the wrong
- # (i.e. provisioning network) address for the node IP
- - sed -i "1i $(ip -4 addr show dev {{ .Values.networks.baremetal.interface }} | grep -oP '(?<=inet\s)\d+(\.\d+){3}' | head -1) $(hostname)" /etc/hosts