K8sgpt
Homebrew
Install K8sGPT on your machine with the following commands:
Other Installation Options
RPM-based installation (RedHat/CentOS/Fedora)
Running K8sGPT through a container
If you are running K8sGPT through a container, the CLI will not be able to open the website for the OpenAI token.
You can find the latest container image for K8sGPT in the packages of the GitHub organisation: Link
A volume can then be mounted to the image through e.g. Docker Compose. Below is an example:
Installing the K8sGPT Operator Helm Chart
K8sGPT can be installed as an Operator inside the cluster. For further information, see the K8sGPT Operator documentation.
Using K8sGPT
You can view the different command options through
Authenticate with OpenAI
First, you will need to authenticate with your chosen backend. The backend is the AI provider such as OpenAI's ChatGPT.
Ensure that you have created an account.
Next, generate a token from the backend:
This will provide you with a URL to generate a token, follow the URL from the command line to your browser to then generate the token.
For a more engaging experience and a better understanding of the capabilities of k8sgpt
and LLMs (Large Language Models), run the following command:
Congratulations! you have successfully created a local kubernetes cluster, deployed a "broken Pod" and analyzed it using k8sgpt
.
More info: https://docs.k8sgpt.ai/reference/cli/
Last updated