commit 6f23a813a3f5447a88e2058f12f022f044f82c08
Author: Andy Ning <email address hidden>
Date: Thu Jun 11 09:44:21 2020 -0400
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 <email address hidden>
Reviewed: https:/ /review. opendev. org/735214 /git.openstack. org/cgit/ starlingx/ stx-puppet/ commit/ ?id=6f23a813a3f 5447a88e2058f12 f022f044f82c08
Committed: https:/
Submitter: Zuul
Branch: master
commit 6f23a813a3f5447 a88e2058f12f022 f044f82c08
Author: Andy Ning <email address hidden>
Date: Thu Jun 11 09:44:21 2020 -0400
Run kubeadm command with specific configuration file
Puppet manifests use the kubeadm command during initializing kubernetes/ admin.conf, but if a user accidentally (or
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/
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: I2942fa4a275145 cc3a1b6c6fdb0f3 827a244f1bb
Closes-Bug: 1882678
Signed-off-by: Andy Ning <email address hidden>