Welcome to the Linux Foundation Forum!

kubever environment variable definition - ditching the Google bla

In the section to set up a one node Kubernetes cluster I used kubever=$(kubectl version 2>/dev/null | base64 | tr -d '\n') instead of kubever=$(kubectl version | base64 | tr -d '\n') in order to remove the output bla indicating future google changes every time I use the kubectl command.

Comments

  • gouravshah
    gouravshah Posts: 139

    Thanks for reporting. Its a good idea and I would update the instructions accordingly.

  • bauger
    bauger Posts: 39

    Actually it does not make any difference as the error output is not piped into the next command and there is no abnormal exit status...my bad. But for sure, understanding how these tools handle messages and metadata requires a little of attention; as per my post about getting indication of future Kubernetes important changes, in case of automated provisioning, getting a central place to collect this valuable information should be explored.

Categories

Upcoming Training