Skip to content

Commit

Permalink
update kustomizations to the latest version of ai-service, without cu…
Browse files Browse the repository at this point in the history
…stom llms
  • Loading branch information
cyyeh committed Jul 18, 2024
1 parent 387b611 commit 655d49e
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 17 deletions.
2 changes: 1 addition & 1 deletion deployment/kustomizations/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ kubectl create namespace wren

# !!!!!!!!!!!!
# MODIFY secret-wren_example.yaml manifest file FIRST
# OPENAI_API_KEY is REQUIRED: without a valid key the wren-ai-service-deployment pod will not start
# LLM_OPENAI_API_KEY and EMBEDDER_OPENAI_API_KEY are REQUIRED: without a valid key the wren-ai-service-deployment pod will not start
# You must update PG_URL, otherwise wren-ui will not work
#vi deployment/kustomizations/examples/secret-wren_example.yaml
kubectl apply -f deployment/kustomizations/examples/secret-wren_example.yaml
Expand Down
9 changes: 7 additions & 2 deletions deployment/kustomizations/base/cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,14 @@ data:
WREN_AI_SERVICE_VERSION: "0.7.3"
WREN_UI_VERSION: "0.10.1"

# OpenAI
# LLM and Embedder Configurations
LLM_PROVIDER: "openai_llm"
LLM_OPENAI_API_BASE: "https://api.openai.com/v1"
GENERATION_MODEL: "gpt-3.5-turbo"
OPENAI_API_BASE: "https://api.openai.com/v1"

EMBEDDER_PROVIDER: "openai_embedder"
EMBEDDER_OPENAI_API_BASE: "https://api.openai.com/v1"


# Telemetry
POSTHOG_HOST: "https://app.posthog.com"
Expand Down
27 changes: 21 additions & 6 deletions deployment/kustomizations/base/deploy-wren-ai-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,36 @@ spec:
configMapKeyRef:
name: wren-config
key: WREN_AI_SERVICE_PORT
- name: OPENAI_API_KEY
- name: LLM_PROVIDER
valueFrom:
configMapKeyRef:
name: wren-config
key: LLM_PROVIDER
- name: LLM_OPENAI_API_KEY
valueFrom:
secretKeyRef:
name: wrenai-secrets
key: OPENAI_API_KEY
- name: LLM_PROVIDER
key: LLM_OPENAI_API_KEY
- name: LLM_OPENAI_API_BASE
valueFrom:
configMapKeyRef:
name: wren-config
key: LLM_OPENAI_API_BASE
- name: EMBEDDER_PROVIDER
valueFrom:
configMapKeyRef:
name: wren-config
key: EMBEDDER_PROVIDER
- name: EMBEDDER_OPENAI_API_KEY
valueFrom:
secretKeyRef:
name: wrenai-secrets
key: LLM_PROVIDER
- name: OPENAI_API_BASE
key: EMBEDDER_OPENAI_API_KEY
- name: EMBEDDER_OPENAI_API_BASE
valueFrom:
configMapKeyRef:
name: wren-config
key: OPENAI_API_BASE
key: EMBEDDER_OPENAI_API_BASE
- name: GENERATION_MODEL
valueFrom:
configMapKeyRef:
Expand Down
7 changes: 3 additions & 4 deletions deployment/kustomizations/examples/secret-wren_example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ metadata:
name: wrenai-secrets
type: Opaque
data:
# OPENAI_API_KEY is REQUIRED: without a valid key the wren-ai-service-deployment pod will not start
OPENAI_API_KEY: UkVRVUlSRUQ6IHNrLXByb2otYWxsLWFjY2Vzcy1wbGFjZWhvbGRlci00LXdyZW4tYWktc2VydmljZS1kZXBsb3ltZW50
OPENAI_API_BASE: aHR0cHM6Ly9hcGkub3BlbmFpLmNvbS92MQ==
LLM_PROVIDER: b3BlbmFp
# LLM_OPENAI_API_KEY and EMBEDDER_OPENAI_API_KEY are REQUIRED: without a valid key the wren-ai-service-deployment pod will not start
LLM_OPENAI_API_KEY: UkVRVUlSRUQ6IHNrLXByb2otYWxsLWFjY2Vzcy1wbGFjZWhvbGRlci00LXdyZW4tYWktc2VydmljZS1kZXBsb3ltZW50
EMBEDDER_OPENAI_API_KEY: UkVRVUlSRUQ6IHNrLXByb2otYWxsLWFjY2Vzcy1wbGFjZWhvbGRlci00LXdyZW4tYWktc2VydmljZS1kZXBsb3ltZW50
PG_USERNAME: cG9zdGdyZXM=

#Azure openai env
Expand Down
8 changes: 4 additions & 4 deletions deployment/kustomizations/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ images:
- name: ghcr.io/canner/wren-bootstrap
newTag: 0.1.4 # WREN_BOOTSTRAP_VERSION
- name: ghcr.io/canner/wren-engine
newTag: 0.5.1 # WREN_ENGINE_VERSION
newTag: 0.7.0 # WREN_ENGINE_VERSION
- name: ghcr.io/canner/wren-ui
newTag: 0.8.0 # WREN_UI_VERSION
newTag: 0.10.0 # WREN_UI_VERSION
- name: ghcr.io/canner/wren-ai-service
newTag: 0.5.7 # WREN_AI_SERVICE_VERSION
newTag: 0.7.2 # WREN_AI_SERVICE_VERSION
- name: ghcr.io/canner/wren-engine-ibis
newTag: 0.5.1 # IBIS_SERVER_VERSION
newTag: 0.7.0 # IBIS_SERVER_VERSION

resources:
- base/cm.yaml
Expand Down

0 comments on commit 655d49e

Please sign in to comment.