-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: empty analyze results when running with operator on AKS + error is raised #98
Comments
Hello, thank you for your message. Are you trying to use a different backend from openAI? Can you give more details about the K8SGPT manifest you are deploying? apiVersion: core.k8sgpt.ai/v1alpha1
kind: K8sGPT
metadata:
name: k8sgpt-sample
spec:
model: gpt-3.5-turbo
... |
Yes, im trying to use azure openapi instance. apiVersion: core.k8sgpt.ai/v1alpha1
kind: K8sGPT
metadata:
name: k8sgpt-sample
namespace: kube-system
spec:
model: gpt-3.5-turbo
backend: azureopenai
baseurl: https://mdc-generative-ai.openai.azure.com/
engine: eyal-test
noCache: false
version: v0.3.0
enableAI: true
secret:
name: k8sgpt-sample-secret
key: openai-api-key |
Moving this to the operator repo |
@eyalsofer how does it behave if you run this from the CLI rather than the operator? |
@AlexsJones The choice of backend is not supported by the client API it seems. |
It should be as per K8sGPT code.
Unfortunately I cant test this without access ( I have applied ) |
What do the logs say from the operator @eyalsofer ? |
This is the error i see in the pod's logs: |
Can you please try version 0.0.14 of the operator?
|
ok i deleted the CRD and updated the helm chart of the operator to 0.0.14. 2023-05-15T09:27:03Z ERROR Reconciler error {"controller": "k8sgpt", "controllerGroup": "core.k8sgpt.ai", "controllerKind": "K8sGPT", "K8sGPT": {"name":"k8sgpt-sample","namespace":"kube-system"}, "namespace": "kube-system", "name": "k8sgpt-sample", "reconcileID": "1dd2277a-c121-494a-a506-a93a3e012b1f", "error": "failed to call Analyze RPC: rpc error: code = Unknown desc = AI provider not specified in configuration"} |
What version of K8sGPT is in the CR? It needs to be at least v0.3.0 |
yes, its v3.0: |
i see this errors in k8sgpt-operator-system ns: |
i will try to recreate the secret |
got the error again after recreating the secret |
Unfortunately, I am limited in assisting until I have access to the API, which could be weeks. It would be helpful if you could reproduce this without the operator and just use K8sGPT CLI |
i tried yesterday the k8sgpt with openai token and it worked fine. |
btw, found a bug with the k8sgbt cli auth command: |
the auth cli argument has recently changed and we should reflect this in README file. it looks like you haven't properly configured the provider, now you get a 404 instead of a 401 I believe @AlexsJones will be able to help with testing it in the operator and cli. |
If you update to
It is a big clunky to work with the analyze by having to specify the backend, something I will look at improving |
I have a PR to make this much easier, once it's reviewed ill try to get it in to make your life easier k8sgpt-ai/k8sgpt#427 |
I have tested this now in the operator..
I can confirm azureopenai as a backend is working cc @arbreezy |
Thanks @AlexsJones |
btw, this is the error im seeing: |
hey @eyalsofer as it states in the error message, you've reached your quota in Azure OpenAI API, this is unrelated to the operator's functionality check your Azure subscription please :) |
Hi @arbreezy but the output of kubectl get results -o json | jq . still empty: |
Hi, I worked based on instructions provided on https://github.com/k8sgpt-ai/k8sgpt and also by watching Youtube by @AlexsJones (https://www.youtube.com/watch?v=hb4du-oK0KY) in order to connect my AKS with Azure Open AI service.
When I updated it to use v0.3.2, then Reconciling K8sGPT process was done successfully and I got Result created. |
Operator at the moment is compatible with |
@arbreezy Thank you for clarifying it. |
Checklist
Affected Components
K8sGPT Version
v1alpha1
Kubernetes Version
V 1.25.6
Host OS and its Version
Ubunto
Steps to reproduce
Expected behaviour
list with analyzed data is return + no error at k8sgpt deployment.
Actual behaviour
returns empty list:
{
"apiVersion": "v1",
"items": [],
"kind": "List",
"metadata": {
"resourceVersion": ""
}
}
Additional Information
Spoke with Aris on this issue (Aris: "we've recently refactored the way we interact with k8sgpt service and I think we need to tweak it a bit")
The text was updated successfully, but these errors were encountered: