Andy Ning 6f23a813a3 Run kubeadm command with specific configuration file
Puppet manifests use the kubeadm command during initializing
kubernetes nodes. 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: I2942fa4a275145cc3a1b6c6fdb0f3827a244f1bb
Closes-Bug: 1882678
Signed-off-by: Andy Ning <andy.ning@windriver.com>
2020-06-11 15:45:43 -04:00
2019-09-09 14:52:12 -05:00
2019-09-09 14:52:12 -05:00
2019-09-09 14:52:12 -05:00
2019-09-09 14:52:12 -05:00
Description
StarlingX Puppet modules and manifests
20 MiB
Languages
Puppet 58.9%
Python 21.4%
HTML 7.4%
Shell 7%
Ruby 4.7%
Other 0.6%