Welcome to the Linux Foundation Forum!

Exercise 5.6

I try to edit kube-apiserver.yaml as instructed in the lab manual. I find out that whenever I try to add a new and valid entry into the yaml, apiserver will fail to startup. Did you come across this? Any hints to me here? thx a lot

Comments

  • chrispokorni
    chrispokorni Posts: 2,605

    Hi @vwong,

    I have run into a similar issue recently, and it took me several attempts at the same exercise to get the kube-apiserver to start after editing its YAML definition file. Backing up the original YAML file helps also to be able to re-start the process from a working config file.

    Regards,
    -Chris

  • dnx
    dnx Posts: 32
    edited October 2021

    If there is an error starting the API server try checking the logs:

    sudo cat /var/log/containers/kube-apiserver-*
    

    Creating a copy to restore to is a great practice.

  • vwong
    vwong Posts: 16

    thx Chris, dnx; i used to have vi as editor; I just use vim to try again, and the apiserver works now. I think it is some "hidden" characters when editing by vi

Categories

Upcoming Training