Repository navigation
feat(k8s): consolidate llm profiles by vram, bypass squid for rfc1918/local, add gemma4:31b - #654
Merged
Merged
Conversation
…s squid for rfc1918 and local domains
This was referenced Sep 28, 2026
Merged
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
This pull request delivers complete consolidation and hardening of the in-cluster LLM infrastructure, proxy routing, and model catalog:
VRAM-Consolidated LLM Profiles & Services:
<llm_provider>-<vram_gib>service tiers (ollama-16gib,ollama-24gib,ollama-32gib,ollama-48gib,ollama-64gib,ollama-72gib,ollama-96gib,ollama-128gib, and correspondingvllm-*tiers).vllm-profiles.yamlandollama-profiles.yamlaround single-GPU and multi-GPU VRAM profiles.k8s/llm/profiles/.k8s/llm/gateway/configmap.yaml) to match virtual models to their optimal hardware and VRAM profiles.Squid Caching Proxy Bypass for RFC 1918 & Local Domains:
NO_PROXYacross all stack deployments (llm-gateway,ollama-profiles,vllm-profiles,lightllm,portkey) to explicitly exempt RFC 1918 CIDRs (10.0.0.0/8,172.16.0.0/12,192.168.0.0/16), local domains (.lan,lan,.local,local,.internal,internal), and cluster FQDNs (.svc,.cluster.local).llm-gateway-perimeterNetworkPolicy with explicit egress rules for private RFC 1918 inference endpoints (ports 11434 and 8000).litellm.ServiceUnavailableError: Ollama_chatExceptionDNS failures caused by proxying internal traffic through Squid.Gemma 4 31B Integration:
gemma4:31bon the 32GiB VRAM Volta backend (ollama-32gib).gemma4:31broute tollm-gateway-configand updated Open WebUIMODEL_FILTER_LISTand SQLite connection settings.Ingress & Session Reliability:
chat.retric.click,ai.retric.click,ollama.retric.click, andqdrant.retric.click./app/backend/data/.webui_secret_key) preventing token invalidation on pod restarts.Verification
uv run devops ci: 100% pass across all 10 quality gates.tests/test_k8s_llm_gateway.py,tests/test_k8s_squid.py,tests/test_ai_gateway_portkey_lightllm.py,tests/test_k8s_network_policies.pyall passing.devops-chat,devops-coder, andgemma4:31binference tested and functioning.