Before preflight checks can run, you need to have a client-only component available. Nothing needs to be installed in the cluster. The Preflight client utility is packaged as a kubectl plugin, and can be installed using krew. For instructions on how to install krew, visit https://github.com/kubernetes-sigs/krew/#installation. For most supported platforms, Replicated has created an easy-to-use krew installer that can be found at krew.sh.
The following command will install krew and the preflight plugin:
curl https://krew.sh/preflight | bash
Once installed, you can execute preflight checks that are packaged and hosted at any URL using:
kubectl preflight <uri/path>
kubectl preflight https://preflight.replicated.com
This will connect to the cluster defined in your local kubecontext, and collect some basic information about the cluster. After it’s finished, it will show the results in a terminal based UI, highlighting the passed checks in green, the warning checks in yellow and the failed checks in red. The up and down arrow keys will select different checks, showing information messages and URLs to click for more information.