commit 78974f643ab6bd65046385a774a3ee6f7313da15
Author: Andy Ning <email address hidden>
Date: Thu Jun 11 09:35:46 2020 -0400
Run kubeadm command with specific configuration file
sysinv uses the kubeadm command to generate kubeadm join command.
However, it is not passing the --kubeconfig parameter to this command,
so the command will search for the kubeconfig file. Normally it finds
this file in /etc/kubernetes/admin.conf, but if a user accidentally
(or intentionally) creates a config file at /root/.kube/config,
this file can take precedence and cause the kubeadm command to fail.
This commit updated the command with /etc/kubernetes/admin.conf as its
configuration file explicitly.
Change-Id: I4fb6d6325ca2cd8c7ab28c0acb0efdf6b1fea45b
Closes-Bug: 1882678
Signed-off-by: Andy Ning <email address hidden>
Reviewed: https:/ /review. opendev. org/735215 /git.openstack. org/cgit/ starlingx/ config/ commit/ ?id=78974f643ab 6bd65046385a774 a3ee6f7313da15
Committed: https:/
Submitter: Zuul
Branch: master
commit 78974f643ab6bd6 5046385a774a3ee 6f7313da15
Author: Andy Ning <email address hidden>
Date: Thu Jun 11 09:35:46 2020 -0400
Run kubeadm command with specific configuration file
sysinv uses the kubeadm command to generate kubeadm join command. /admin. conf, but if a user accidentally
However, it is not passing the --kubeconfig parameter to this command,
so the command will search for the kubeconfig file. Normally it finds
this file in /etc/kubernetes
(or intentionally) creates a config file at /root/.kube/config,
this file can take precedence and cause the kubeadm command to fail.
This commit updated the command with /etc/kubernetes /admin. conf as its
configuration file explicitly.
Change-Id: I4fb6d6325ca2cd 8c7ab28c0acb0ef df6b1fea45b
Closes-Bug: 1882678
Signed-off-by: Andy Ning <email address hidden>