File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
example-apps/chatbot-rag-app Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -93,19 +93,26 @@ Then, import your `.env` file as a configmap like this:
9393kubectl create configmap chatbot-rag-app-env --from-env-file=.env
9494```
9595
96- If you are using Vertex AI, make a secret for authentication:
96+ <details >
97+ <summary >To use Vertex AI, set `LLM_TYPE=vertex` in your `.env` and follow these steps</summary >
98+ The ` api-frontend container ` needs access to your Google Cloud credentials.
99+ Share your ` application_default_credentials.json ` as a Kubernetes secret:
97100``` bash
101+ # Logs you into Google Cloud and creates application_default_credentials.json
102+ gcloud auth application-default login
103+ # Adds your credentials to a Kubernetes secret named gcloud-credentials
98104kubectl create secret generic gcloud-credentials \
99105 --from-file=application_default_credentials.json=$HOME /.config/gcloud/application_default_credentials.json
100106```
107+ </details >
101108
102- Now that your configuration is applied, create the chatbot-rag-app deployment
109+ Now that your configuration is applied, create the ` chatbot-rag-app ` deployment
103110and service by applying this manifest:
104111``` bash
105112kubectl apply -f k8s-manifest.yml
106113```
107114
108- Next, block until chatbot-rag-app is available.
115+ Next, block until ` chatbot-rag-app ` is available.
109116``` bash
110117kubectl wait --for=condition=available --timeout=20m deployment/chatbot-rag-app
111118```
Original file line number Diff line number Diff line change 3434 name : chatbot-rag-app-env
3535 volumeMounts : &volumeMounts
3636 - name : gcloud-credentials
37- mountPath : /root/.config/application_default_credentials.json
37+ mountPath : /root/.config/
38+ subPath : application_default_credentials.json
3839 readOnly : true
3940 containers :
4041 - name : api-frontend
You can’t perform that action at this time.
0 commit comments