-
Notifications
You must be signed in to change notification settings - Fork 90
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]: Result CR not showing any details under Specs.Details section #400
Comments
Same issue here. Checklist
Affected Components
K8sGPT Version Kubernetes Version Host OS and its Version Local-Ai Version: DescriptionMy Result.example.yaml the Expected behavior
Steps to reproduceI deployed k8sgpt as a helm-chart operator and added this CR: apiVersion: core.k8sgpt.ai/v1alpha1
kind: K8sGPT
metadata:
name: k8sgpt-resource
namespace: k8sgpt-operator-system
spec:
ai:
enabled: true
backend: localai
model: ggml-gpt4all-j_f5d8f27287d3
baseUrl: http://local-ai.k8sgpt-operator-system.svc.cluster.local/v1
anonymized: true
language: english
noCache: false
version: v0.3.29 Actual behaviorIn the Result.example.yaml CR manifest, the Additional InformationHowever, when I curl to localai, it works just fine, and in localai pod, I can see debug with this request and I can see a response from my localai model curl http://local-ai.k8sgpt-operator-system.svc.cluster.local/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{ "model": "ggml-gpt4all-j_f5d8f27287d3", "messages": [{"role": "user", "content": "How are you doing?", "temperature": 0.1}] }' {"created":1712108557,"object":"chat.completion","id":"c264e40f-98a4-4ff3-9acf-9bad12aebd08","model":"ggml-gpt4all-j_f5d8f27287d3","choices":[{"index":0,"finish_reason":"stop","message":{"role":"assistant","content":"As an AI language model, I am doing well. Thank you for asking!"}}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0}} My log files are attached: |
I just noticed
|
I have deployed k8sgpt-operator v0.1.3 and my Result manifests are no longer created |
Checklist
Affected Components
K8sGPT Version
v.0.3.29
Kubernetes Version
v1.29.3+rke2r1
Host OS and its Version
SLES15 SP 4
Steps to reproduce
Manifest
apiVersion: core.k8sgpt.ai/v1alpha1 kind: K8sGPT metadata: name: k8sgpt-sample namespace: k8sgpt spec: ai: enabled: true model: gpt-3.5-turbo backend: openai secret: name: opemai-secret key: openai-api-key # anonymized: false # language: english noCache: false repository: ghcr.io/k8sgpt-ai/k8sgpt version: v0.3.29
Expected behaviour
Specs.Details section should have populated some details that were queried from OpenAI backend.
Actual behaviour
Specs.Detail section is empty
Output from kubectl describe result jarvis -n k8sgpt
Name: jarvis Namespace: k8sgpt Labels: k8sgpts.k8sgpt.ai/backend=openai k8sgpts.k8sgpt.ai/name=k8sgpt-sample k8sgpts.k8sgpt.ai/namespace=k8sgpt Annotations: <none> API Version: core.k8sgpt.ai/v1alpha1 Kind: Result Metadata: Creation Timestamp: 2024-04-03T12:49:47Z Generation: 1 Resource Version: 3369563 UID: 5345ff82-5e7b-4874-9fbe-218e8c6e1762 Spec: Backend: openai Details: Error: Sensitive: Masked: KlkvdlVI Unmasked: jarvis Text: jarvis has condition of type EtcdIsVoter, reason MemberNotLearner: Node is a voting member of the etcd cluster Kind: Node Name: jarvis Parent Object: Status: Lifecycle: historical Events: <none>
Additional Information
Logs from the k8sgpt POD
{"level":"info","ts":1712149239.235297,"caller":"server/log.go:50","msg":"request completed","duration_ms":1009,"method":"/schema.v1.ServerService/Analyze","request":"backend:"openai" anonymize:true language:"english" max_concurrency:10 output:"json"","remote_addr":"...:59408"}
{"level":"info","ts":1712149275.4206443,"caller":"server/log.go:50","msg":"request completed","duration_ms":1007,"method":"/schema.v1.ServerService/Analyze","request":"backend:"openai" anonymize:true language:"english" max_concurrency:10 output:"json"","remote_addr":".**..:49692"}
{"level":"info","ts":1712149311.6114714,"caller":"server/log.go:50","msg":"request completed","duration_ms":1007,"method":"/schema.v1.ServerService/Analyze","request":"backend:"openai" anonymize:true language:"english" max_concurrency:10 output:"json"","remote_addr":"..*.:59432"}
The text was updated successfully, but these errors were encountered: