You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hey @szemmour-rh this blog post is outdated and the K8sGPT CR has chnaged significantly; I suggest you go through the README and try again with your local LLM deployment
Checklist
Affected Components
K8sGPT Version
No response
Kubernetes Version
No response
Host OS and its Version
No response
Steps to reproduce
1.Install the LocalAI server
helm install local-ai go-skynet/local-ai -f values.yaml
deployment:
image: quay.io/go-skynet/local-ai:latest
env:
threads: 14
contextSize: 512
modelsPath: "/models"
Optionally create a PVC, mount the PV to the LocalAI Deployment,
and download a model to prepopulate the models directory
modelsVolume:
enabled: true
url: "https://gpt4all.io/models/ggml-gpt4all-j.bin"
pvc:
size: 6Gi
accessModes:
- ReadWriteOnce
auth:
# Optional value for HTTP basic access authentication header
basic: "" # 'username:password' base64 encoded
service:
type: ClusterIP
annotations: {}
If using an AWS load balancer, you'll need to override the default 60s load balancer idle timeout
service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout: "1200"
EOF
`
2.Install the K8sGPT operator
helm repo add k8sgpt https://charts.k8sgpt.ai/
helm install k8sgpt-operator k8sgpt/k8sgpt-operator
`kubectl -n local-ai apply -f - << EOF
apiVersion: core.k8sgpt.ai/v1alpha1
kind: K8sGPT
metadata:
name: k8sgpt-local
namespace: local-ai
spec:
backend: localai
use the same model name here as the one you plugged
into the LocalAI helm chart's values.yaml
model: ggml-gpt4all-j.bin
kubernetes-internal DNS name of the local-ai Service
baseUrl: http://local-ai.local-ai.svc.cluster.local:8080/v1
allow K8sGPT to store AI analyses in an in-memory cache,
otherwise your cluster may get throttled :)
noCache: false
version: v0.2.7
enableAI: true
EOF`
Expected behaviour
the K8sGPT operator should deploy K8sGPT and start communicating with local-ai server to load the model
Actual behaviour
oc logs k8sgpt-operator-1-controller-manager-6d6cc59fcc-zrxkg
gives:
Additional Information
following the article here:
https://itnext.io/k8sgpt-localai-unlock-kubernetes-superpowers-for-free-584790de9b65
The text was updated successfully, but these errors were encountered: