Welcome to the Linux Foundation Forum!

LFS258 - Lab 3.1 Step 18 - "could not bootstrap the admin user in file admin.conf"

geckogecko
geckogecko Posts: 2

Hello everyone,

I'm following the instructions for lab 3.1 - Install Kubernetes, running the instruction commands one by one on the Hosted Environment. I am facing an error on Step 18, when running this command:

kubeadm init \
--config=kubeadm-config.yaml \
--upload-certs \
--node-name=cp \
| tee kubeadm-init.out

The error message is:

I tried running this command to see more information:

kubeadm init \
--config=/root/kubeadm-config.yaml \
--upload-certs \
--node-name=cp \
--v=5

And saw:

Any insights would be much appreciated. Thank you so much!

Answers

  • fcioanca
    fcioanca Posts: 2,614

    Hi @geckogecko

    What course are you enrolled in? This post seems to be in the wrong forum.

    Regards,
    Flavia

  • geckogecko
    geckogecko Posts: 2

    Hello @fcioanca ,

    Thank you for checking the post. I am taking LFS258. My apologies for posting in the wrong place, I tried to select the correct category but it said LFS258 was "Archived".

  • fcioanca
    fcioanca Posts: 2,614

    Hi @geckogecko

    We have reorganized forums a couple of days ago, and each course has been updated with the new forum link and best practices on how to use the forums. To avoid duplication, old forums have been archived.

    Regards,
    Flavia

  • chrispokorni
    chrispokorni Posts: 2,606

    Hi @geckogecko,

    The second round of errors you posted are expected. The kubeadm init command is meant to be executed only once. Any subsequent runs (even for the purpose of troubleshooting with the --v option) will result in conflict errors.

    If kubeadm init or join needs to be executed a second time (assuming corrections were made to the environment, its config file, or its options/flags) then a kubeadm reset should be executed first, to cleanup the environment.

    The first error could be related to misconfigured kubeadm manifest, or incorrect IP addresses populated in the hosts file.

    When attempting the exercise again, pay close attention to step descriptions, to ensure proper values are used to configure your node environment. Document your configuration files as you make progress, so if the issues persist, you can provide them to help us identify the root cause of the first error.

    Regards,
    -Chris

Categories

Upcoming Training