{"id":28261846,"url":"https://github.com/bugbiteme/ollama-granite-ocp","last_synced_at":"2026-01-24T06:03:51.081Z","repository":{"id":292409770,"uuid":"980751105","full_name":"bugbiteme/ollama-granite-ocp","owner":"bugbiteme","description":"Demo for running Granite LLM on OpenShift with Ollama and accessing it via Open WebUI","archived":false,"fork":false,"pushed_at":"2025-05-09T21:22:26.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-20T06:12:04.274Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bugbiteme.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-09T16:45:17.000Z","updated_at":"2025-05-09T21:22:29.000Z","dependencies_parsed_at":"2025-05-09T20:38:59.937Z","dependency_job_id":null,"html_url":"https://github.com/bugbiteme/ollama-granite-ocp","commit_stats":null,"previous_names":["bugbiteme/ollama-granite-ocp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bugbiteme/ollama-granite-ocp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugbiteme%2Follama-granite-ocp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugbiteme%2Follama-granite-ocp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugbiteme%2Follama-granite-ocp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugbiteme%2Follama-granite-ocp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bugbiteme","download_url":"https://codeload.github.com/bugbiteme/ollama-granite-ocp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugbiteme%2Follama-granite-ocp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260081269,"owners_count":22956066,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-20T06:11:52.222Z","updated_at":"2026-01-24T06:03:51.041Z","avatar_url":"https://github.com/bugbiteme.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# ollama-granite-ocp\n\nDemo for running LLMs on OpenShift using [Ollama](https://ollama.com) and accessing it via [Open WebUI](https://github.com/open-webui/open-webui).\n\n## Overview\n\nThis demo:\n- Deploys a Large Language Model (LLM) using Ollama on OpenShift\n- Exposes the model through Open WebUI\n- Supports running a single model or preloading multiple models\n\n\u003e ⚠️ **Note:**  \n\u003e This was built and tested on OpenShift running on AWS using an `mx6a.4xlarge` EC2 instance. It is resource-intensive, especially in terms of memory.  \n\u003e If you're deploying in a different environment or using a non-`gp3-csi` storage class, update the `PersistentVolumeClaim` definitions accordingly.\n\n---\n\n## 🛠 Deploy to OpenShift\n\n### Option 1: Deploy a single-model Ollama stack\n\nTo deploy with the default model (`granite3.3:8b`), run:\n\n```bash\noc apply -k k8/base\n```\nThis deploys the ollama service in the `ollama-granite-demo` namespace and preloads the model defined in config-ollama.yaml.\n\nTo change the model, update the `MODEL_NAME` in `k8/base/config-ollama.yaml`.\n\n---\n\n### Option 2: Deploy a multi-model Ollama stack\n\nTo preload multiple models (`granite3.3:8b`, `mistral`, `llama3`), run:\n\n```bash\noc apply -k k8/overlays/multi-model\n```\n\nThis deploys the `ollama` service in the `multi-model` namespace and preloads the models defined in `config-ollama.yaml`.\n\n---\n\n## 🌐 Accessing the Web UI\n\nOnce deployed, get the Open WebUI route:\n\n```bash\noc get routes\n```\n\nExample output:\n```bash\nNAME         HOST/PORT\nopen-webui   open-webui-ollama-granite-demo.apps.\u003cyour-domain\u003e\n```\n\nOpen that URL in your browser. The first time you access it, you'll be prompted to create an admin account.\n\n---\n\n## 🔄 Customization\n\n- **Change default model**: edit the `MODEL_NAME` value in the ConfigMap (`k8/base/config-ollama.yaml`)\n- **Add more models**: update the `MODELS` key in the ConfigMap in `k8/overlays/multi-model/config-ollama.yaml`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbugbiteme%2Follama-granite-ocp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbugbiteme%2Follama-granite-ocp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbugbiteme%2Follama-granite-ocp/lists"}