Deploy the optional chatbot
In this section, you will learn how to deploy the optional chatbot application. NOTE: this requires that you have provisioned an Oracle Backend for Microservices and AI with a GPU cluster and are running Ollama in that cluster. The lab CloudBank AI Assistant outlines the steps.
Note if you already have a running session with
oractlyou can skip step 1-3.
-
Start the tunnel
kubectl port-forward -n obaas-admin svc/obaas-admin 8080 -
Get the password for the
obaas-adminuserkubectl get secret -n azn-server oractl-passwords -o jsonpath='{.data.admin}' | base64 -d -
Start
oractlfrom thecloudbank-v4directory and login as theobaas-adminuser. -
Run the following command in
oractl:deploy --service-name chatbot --artifact-path chatbot/target/chatbot-0.0.1-SNAPSHOT.jar --image-version 0.0.1 --java-version ghcr.io/oracle/graalvm-native-image-obaas:21 -
Start a tunnel to the
chatbotapplicationkubectl -n application port-forward svc/chatbot 7575:8080 -
Test the
chatbotapplication.curl -X POST -d 'what is spring boot?' http://localhost:7575/chatThe command should return something similar to this:
A popular question! Spring Boot is an open-source Java-based framework that provides a simple and efficient wait to build web applications, RESTful APIs, and microservices. It's built on top of the Spring Framework, but with a more streamlined and opinionated approach.