|
| 1 | +--- |
| 2 | +title: Getting started |
| 3 | +weight: 10 |
| 4 | +aliases: /lemonade-stand-quickstart/getting-started/ |
| 5 | +--- |
| 6 | + |
| 7 | +:toc: |
| 8 | +:imagesdir: /images |
| 9 | +:_content-type: ASSEMBLY |
| 10 | +include::modules/comm-attributes.adoc[] |
| 11 | + |
| 12 | +[id="deploying-lemonade-stand-quickstart-pattern"] |
| 13 | +== Deploying the Lemonade Stand AI Quickstart pattern |
| 14 | + |
| 15 | +.Prerequisites |
| 16 | + |
| 17 | +* An OpenShift cluster (version 4.18 or later). This pattern requires at least 1 NVIDIA GPU node for LLM inference. |
| 18 | + ** *AWS*: The pattern automatically provisions 1 `g5.2xlarge` GPU worker node (NVIDIA A10G) during installation. No GPU nodes need to be present before you deploy. |
| 19 | + ** *Other providers and bare metal*: A GPU node must already be part of the OpenShift cluster before you deploy this pattern. The pattern installs all required operators automatically. |
| 20 | + ** To create an OpenShift cluster, go to the https://console.redhat.com/[Red Hat Hybrid Cloud console]. |
| 21 | + ** Select *OpenShift \-> Red Hat OpenShift Container Platform \-> Create cluster*. |
| 22 | +* The Helm binary. For instructions, see link:https://helm.sh/docs/intro/install/[Installing Helm]. |
| 23 | +* The `oc` CLI tool. For instructions, see link:https://docs.openshift.com/container-platform/latest/cli_reference/openshift_cli/getting-started-cli.html[Getting started with the OpenShift CLI]. |
| 24 | +* Additional installation tool dependencies. For details, see link:https://validatedpatterns.io/learn/quickstart/[Patterns quick start]. |
| 25 | + |
| 26 | +[id="preparing-for-deployment-lemonade-stand"] |
| 27 | +== Preparing for deployment |
| 28 | +.Procedure |
| 29 | + |
| 30 | +. Fork the link:https://github.com/validatedpatterns-sandbox/ai-quickstart-lemonade-stand[ai-quickstart-lemonade-stand] repository on GitHub. You must fork the repository to customize this pattern. |
| 31 | + |
| 32 | +. Clone the forked copy of this repository. |
| 33 | ++ |
| 34 | +[source,terminal] |
| 35 | +---- |
| 36 | +$ git clone git@github.com:your-username/ai-quickstart-lemonade-stand.git |
| 37 | +---- |
| 38 | + |
| 39 | +. Go to the root directory of your Git repository: |
| 40 | ++ |
| 41 | +[source,terminal] |
| 42 | +---- |
| 43 | +$ cd ai-quickstart-lemonade-stand |
| 44 | +---- |
| 45 | + |
| 46 | +. Run the following command to set the upstream repository: |
| 47 | ++ |
| 48 | +[source,terminal] |
| 49 | +---- |
| 50 | +$ git remote add -f upstream git@github.com:validatedpatterns-sandbox/ai-quickstart-lemonade-stand.git |
| 51 | +---- |
| 52 | + |
| 53 | +. Verify the setup of your remote repositories by running the following command: |
| 54 | ++ |
| 55 | +[source,terminal] |
| 56 | +---- |
| 57 | +$ git remote -v |
| 58 | +---- |
| 59 | ++ |
| 60 | +.Example output |
| 61 | ++ |
| 62 | +[source,terminal] |
| 63 | +---- |
| 64 | +origin git@github.com:your-username/ai-quickstart-lemonade-stand.git (fetch) |
| 65 | +origin git@github.com:your-username/ai-quickstart-lemonade-stand.git (push) |
| 66 | +upstream git@github.com:validatedpatterns-sandbox/ai-quickstart-lemonade-stand.git (fetch) |
| 67 | +upstream git@github.com:validatedpatterns-sandbox/ai-quickstart-lemonade-stand.git (push) |
| 68 | +---- |
| 69 | + |
| 70 | +. Optional: To customize the deployment, create and switch to a new branch by running the following command: |
| 71 | ++ |
| 72 | +[source,terminal] |
| 73 | +---- |
| 74 | +$ git checkout -b my-branch |
| 75 | +---- |
| 76 | ++ |
| 77 | +Make your changes, then stage and commit them: |
| 78 | ++ |
| 79 | +[source,terminal] |
| 80 | +---- |
| 81 | +$ git add <changed-files> |
| 82 | +$ git commit -m "Customize deployment" |
| 83 | +---- |
| 84 | ++ |
| 85 | +Push the changes to your forked repository: |
| 86 | ++ |
| 87 | +[source,terminal] |
| 88 | +---- |
| 89 | +$ git push origin my-branch |
| 90 | +---- |
| 91 | + |
| 92 | +[id="deploying-cluster-using-patternsh-file-lemonade-stand"] |
| 93 | +== Deploying the pattern by using the pattern.sh file |
| 94 | + |
| 95 | +To deploy the pattern by using the `pattern.sh` file, complete the following steps: |
| 96 | + |
| 97 | +. Log in to your cluster by following this procedure: |
| 98 | + |
| 99 | +.. Obtain an API token by visiting link:https://oauth-openshift.apps.<your_cluster>.<domain>/oauth/token/request[https://oauth-openshift.apps.<your_cluster>.<domain>/oauth/token/request]. |
| 100 | + |
| 101 | +.. Log in to the cluster by running the following command: |
| 102 | ++ |
| 103 | +[source,terminal] |
| 104 | +---- |
| 105 | +$ oc login --token=<retrieved-token> --server=https://api.<your_cluster>.<domain>:6443 |
| 106 | +---- |
| 107 | ++ |
| 108 | +Or log in by running the following command: |
| 109 | ++ |
| 110 | +[source,terminal] |
| 111 | +---- |
| 112 | +$ export KUBECONFIG=~/<path_to_kubeconfig> |
| 113 | +---- |
| 114 | + |
| 115 | +. Deploy the pattern to your cluster. Run the following command: |
| 116 | ++ |
| 117 | +[source,terminal] |
| 118 | +---- |
| 119 | +$ ./pattern.sh make install |
| 120 | +---- |
| 121 | + |
| 122 | +.Verification |
| 123 | + |
| 124 | +To verify a successful installation, check the health of the ArgoCD applications: |
| 125 | + |
| 126 | +. Run the following command: |
| 127 | ++ |
| 128 | +[source,terminal] |
| 129 | +---- |
| 130 | +$ ./pattern.sh make argo-healthcheck |
| 131 | +---- |
| 132 | ++ |
| 133 | +It might take several minutes for all applications to synchronize and reach a healthy state. This includes downloading detector models, initializing the GPU operator, and starting the vLLM inference service. |
| 134 | + |
| 135 | +. Verify that the Operators are installed by navigating to *Operators -> Installed Operators* in the {ocp} web console. Confirm the following Operators are present: |
| 136 | ++ |
| 137 | +* NVIDIA GPU Operator |
| 138 | +* {rhoai} |
| 139 | +* Node Feature Discovery Operator |
| 140 | +* External Secrets Operator |
| 141 | + |
| 142 | +. After all applications are healthy, verify the inference service is serving by running: |
| 143 | ++ |
| 144 | +[source,terminal] |
| 145 | +---- |
| 146 | +$ oc get inferenceservice -A |
| 147 | +---- |
| 148 | + |
| 149 | +. Access the Lemonade Stand chatbot UI. Navigate to *Networking -> Routes* in the `lemonade-stand` namespace and open the route URL for the `lemonade-stand` service. |
| 150 | + |
| 151 | +. Access the R Shiny monitoring dashboard. Navigate to *Networking -> Routes* in the `lemonade-stand` namespace and open the route URL for the `shiny-dashboard` service. |
| 152 | + |
| 153 | +[id="next-steps-getting-started-lemonade-stand"] |
| 154 | +== Next steps |
| 155 | + |
| 156 | +* link:customizing-this-pattern[Customizing this pattern] |
| 157 | +* link:cluster-sizing[Cluster sizing] |
| 158 | +* link:troubleshooting[Troubleshooting] |
0 commit comments