Skip to content

Commit

Permalink
feat: modify README k8sgpt crd example
Browse files Browse the repository at this point in the history
fix type

Signed-off-by: JuHyung-Son <[email protected]>
  • Loading branch information
JuHyung-Son committed Nov 21, 2023
1 parent cf9387a commit 734b96a
Showing 1 changed file with 29 additions and 17 deletions.
46 changes: 29 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ spec:
# anonymized: false
# language: english
noCache: false
version: v0.3.17
image:
repository: ghcr.io/k8sgpt-ai/k8gpt
tag: v0.3.8
#integrations:
# trivy:
# enabled: true
Expand Down Expand Up @@ -101,14 +103,17 @@ metadata:
name: k8sgpt-sample
namespace: k8sgpt-operator-system
spec:
model: gpt-3.5-turbo
backend: openai
ai:
model: gpt-3.5-turbo
backend: openai
enabled: true
secret:
name: k8sgpt-sample-secret
key: openai-api-key
noCache: false
version: v0.3.0
enableAI: true
secret:
name: k8sgpt-sample-secret
key: openai-api-key
image:
repository: ghcr.io/k8sgpt-ai/k8gpt
tag: v0.3.8
remoteCache:
credentials:
name: k8sgpt-sample-cache-secret
Expand Down Expand Up @@ -143,14 +148,17 @@ metadata:
name: k8sgpt-sample
namespace: k8sgpt-operator-system
spec:
model: gpt-3.5-turbo
backend: openai
ai:
model: gpt-3.5-turbo
backend: openai
enabled: true
secret:
name: k8sgpt-sample-secret
key: openai-api-key
noCache: false
version: v0.3.0
enableAI: true
secret:
name: k8sgpt-sample-secret
key: openai-api-key
image:
repository: ghcr.io/k8sgpt-ai/k8gpt
tag: v0.3.8
remoteCache:
credentials:
name: k8sgpt-sample-cache-secret
Expand Down Expand Up @@ -194,7 +202,9 @@ spec:
baseUrl: https://k8sgpt.openai.azure.com/
engine: llm
noCache: false
version: v0.3.8
image:
repository: ghcr.io/k8sgpt-ai/k8gpt
tag: v0.3.8
EOF
```
Expand Down Expand Up @@ -224,7 +234,9 @@ spec:
backend: localai
baseUrl: http://local-ai.local-ai.svc.cluster.local:8080/v1
noCache: false
version: v0.3.8
image:
repository: ghcr.io/k8sgpt-ai/k8gpt
tag: v0.3.8
EOF
```
Note: ensure that the value of `baseUrl` is a properly constructed [DNS name](https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#services) for the LocalAI Service. It should take the form: `http://local-ai.<namespace_local_ai_was_installed_in>.svc.cluster.local:8080/v1`.
Expand Down

0 comments on commit 734b96a

Please sign in to comment.