generated from equinix-labs/terraform-equinix-template
-
Notifications
You must be signed in to change notification settings - Fork 1
docs: add demo for GDCV (Anthos) for baremetal #45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
cprivitere
wants to merge
2
commits into
main
Choose a base branch
from
add-gdcv-for-baremetal
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
# Demo Install Steps | ||
|
||
- Install jq if you don't have it already | ||
|
||
<https://jqlang.github.io/jq/download/> | ||
|
||
- Install git if you don't have it already | ||
|
||
<https://git-scm.com/book/en/v2/Getting-Started-Installing-Git> | ||
|
||
```sh | ||
git clone https://github.com/cprivitere/terraform-gcpartner-anthos-baremetal | ||
``` | ||
|
||
- Install Terraform if you don't have it already | ||
|
||
<https://developer.hashicorp.com/terraform/tutorials/gcp-get-started/install-cli> | ||
|
||
```sh | ||
cd terraform-gcpartner-anthos-baremetal | ||
terraform init -upgrade | ||
``` | ||
|
||
- Install Gcloud CLI if you dont' have it already | ||
|
||
<https://cloud.google.com/sdk/docs/install> | ||
|
||
- do a gcloud init and set it up to connect your GCP project | ||
- Edit the terraform.tfvars file to have your API key and Project ID | ||
|
||
```sh | ||
terraform plan | ||
terraform apply | ||
terraform output kubeconfig | grep -v EOT > ~/anthos.kubeconfig | ||
cd ~ | ||
export KUBECONFIG=~/anthos.kubeconfig | ||
``` | ||
|
||
- Install kubectl if you don't have it already | ||
|
||
<https://kubernetes.io/docs/tasks/tools/> | ||
|
||
- Validate the cluster is working | ||
|
||
```sh | ||
kubectl get nodes | ||
kubectl get pods | ||
kubectl patch storageclass local-shared -p '{"metadata":{"annotations":{"storageclass.kubernetes.io/is-default-class": "true"}}}' | ||
``` | ||
|
||
- Install Helm if you don't have it already | ||
|
||
<https://helm.sh/docs/intro/install/> | ||
|
||
```sh | ||
git clone https://github.com/open-webui/open-webui/ | ||
cd open-webui | ||
helm package ./kubernetes/helm/ | ||
helm install ollama-webui ./open-webui-1.0.0.tgz --set webui.ingress.enabled=true | ||
kubectl get ingress open-webui | ||
``` | ||
|
||
- You may need to wait a while for the ingress to be ready, just wait until the Address field has an IP address in it. | ||
|
||
- Open a web browser and go to that IP address, using normal http (no https): <http://IPADDRESSFROMLASTSTEP> | ||
|
||
- It may say no route to upstream while the webui is starting up, just keep refreshing until it works | ||
|
||
- Go to settings->Connections edit the ollama url and remove the /api at the end | ||
|
||
- click the little reload button next to the ollama url | ||
|
||
- Wait for it to pop up that it connected to ollama | ||
|
||
- Now go to the Settings->Models | ||
|
||
- Type `gemma:2b` into the "Pull a model from Ollama.com" box and click the download button | ||
|
||
- Wait for it to say the model has been successfully downloaded. This will take a while, even after it says 100%. | ||
|
||
- Close Settings | ||
|
||
- Choose gemma:2b from the models drop down | ||
|
||
- Type a prompt and see if it works |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note for the future: once GCPartner/terraform-gcpartner-anthos-baremetal#21 is merged, we should update this URL to point to the original repo instead of a personal fork