Repository navigation
Closed
Labels
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/k8sKubernetes commands, Helm charts, pods, services, and policiestype/featureType feature: a new function
Milestone
Description
Description
Deploy and configure a dedicated, high-capacity Squid caching proxy with SSL-Bump (TLS inspection) in the Kubernetes cluster. Sized and tuned to cache outbound HTTP/HTTPS traffic originating from in-cluster pods, specifically handling multi-gigabyte Ollama 70B model downloads (~40GB–75GB per layer) with content-addressable deduplication.
Architecture & Key Deliverables
- Squid Manifests (
k8s/squid/):namespace.yaml: Dedicatedsquidnamespace with baseline security profile.pvc.yaml: 250Gi PersistentVolumeClaim for cache storage and SSL cert db.configmap.yaml:squid.confconfigured with:maximum_object_size 100 GBcache_dir ufs /var/spool/squid/cache 200000 16 256(200GB disk cache)range_offset_limit -1(cache full object on range requests)quick_abort_min -1,quick_abort_max -1read_ahead_gap 64 MB- Content-addressable layer caching rules (
/v2/.*/blobs/sha256:andregistry.ollama.ai). ssl-bumpconfiguration terminating TLS with internal CA and dynamic host cert generation.
ca-secret-generator.yaml: CA cert generation job / secret provisioner.service.yaml: ClusterIP service exposing port 3128 (squid.squid.svc.cluster.local:3128).deployment.yaml: Squid deployment with health probes, volume mounts, and security context.networkpolicy.yaml: Ingress from cluster pods, egress to Internet ports 80/443.
- Cluster & Ollama Integration:
- Update
k8s/llm/ollama-daemonset.yamlwith proxy environment variables (HTTP_PROXY,HTTPS_PROXY,NO_PROXY) and Squid CA cert trust mount. - Update root
k8s/kustomization.yamlandk8s/namespaces.yaml.
- Update
Acceptance Criteria
- Valid Kubernetes manifests in
k8s/squid/. - Automated validation via
kubectl apply --dry-run=client -k k8s/squid/. - Kubeconform / policy validation passes cleanly.
- Documentation and task tracking updated.
Metadata
Metadata
Assignees
Labels
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/k8sKubernetes commands, Helm charts, pods, services, and policiestype/featureType feature: a new function
Type
Projects
- StatusShow more project fieldsDone
Activity
feat(k8s): deploy squid caching proxy with ssl bump, observability, a…
feat(k8s): deploy squid caching proxy with ssl bump, observability, a…
dan-petty commentedon Sep 11, 2026
Delivered and verified via squash-merge of PR #134 into
release/v0.2.16.feat(release): v0.2.16 (#161)