Hacker News new | ask | show | jobs
by sixonesixo 295 days ago
good job, i really like it! it would be awesome to have the ability to integrate it in k9s
1 comments

that would be cool! Love that idea
i've found out that is possible! with k9s plugins. you need to create a yaml file with the gonzo command you want to launch

the file is `$XDG_CONFIG_HOME/k9s/plugins.yaml`

and here's an example:

  plugins:
     gonzo-ai:
       shortCut: g
       description: "Gonzo: AI log analysis"
       scopes:
       - po
       command: sh
       background: false
       args:
       - -c
       - "kubectl logs -f $NAME -n $NAMESPACE --context $CONTEXT | gonzo --ai-model=gpt-4"
Nice work! That's awesome