mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 08:17:26 +00:00
kubeadm: Move the uploadconfig phase right in the beginning of cluster init
This commit is contained in:
parent
a235ba4e49
commit
b1fb289f0f
@ -327,6 +327,13 @@ func (i *Init) Run(out io.Writer) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Upload currently used configuration to the cluster
|
||||||
|
// Note: This is done right in the beginning of cluster initialization; as we might want to make other phases
|
||||||
|
// depend on centralized information from this source in the future
|
||||||
|
if err := uploadconfigphase.UploadConfiguration(i.cfg, client); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
// PHASE 4: Mark the master with the right label/taint
|
// PHASE 4: Mark the master with the right label/taint
|
||||||
if err := markmasterphase.MarkMaster(client, i.cfg.NodeName); err != nil {
|
if err := markmasterphase.MarkMaster(client, i.cfg.NodeName); err != nil {
|
||||||
return err
|
return err
|
||||||
@ -361,11 +368,6 @@ func (i *Init) Run(out io.Writer) error {
|
|||||||
|
|
||||||
// PHASE 6: Install and deploy all addons, and configure things as necessary
|
// PHASE 6: Install and deploy all addons, and configure things as necessary
|
||||||
|
|
||||||
// Upload currently used configuration to the cluster
|
|
||||||
if err := uploadconfigphase.UploadConfiguration(i.cfg, client); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
if err := apiconfigphase.CreateRBACRules(client, k8sVersion); err != nil {
|
if err := apiconfigphase.CreateRBACRules(client, k8sVersion); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user