FIX: hostname-override is breaking the install 88/3988/1
authordave kormann <davek@research.att.com>
Thu, 10 Dec 2020 16:04:37 +0000 (11:04 -0500)
committerdave kormann <davek@research.att.com>
Thu, 10 Dec 2020 16:33:04 +0000 (11:33 -0500)
Speccifying the hostname on the kubelet command line appears
to break our k8s install.
This change is a workaround until we can figure out a better fix
that doesn't name nodes by IP address.

signed-off-by: dave kormann <davek@research.att.com>
Change-Id: Icde4a572fc1f018e7b5f3a14e6cadb9b8f93d9ad

ansible/roles/kubelet/defaults/main.yaml

index c9634b3..71a3a2d 100644 (file)
@@ -18,7 +18,7 @@ kubelet_healthcheck_port: 10248
 kubelet_kubeconfig_path: "{% if nodename | search('caas_master') %}/etc/kubernetes/kubeconfig/kubeletc.yml{% else %}/root/kubeletc.yml{% endif %}"
 
 common_kubelet_params:
-  - "--hostname-override={{ hostname }}"
+  - "--hostname-override={{ networking.infra_internal.ip }}"
   - "--kubeconfig={{ kubelet_kubeconfig_path }}"
   - "--network-plugin=cni"
   - "--node-labels={{ lookup('template', 'node_labels.j2') | trim }}"