- Use host.containers.internal:5050 instead of registry.tail8d86e.ts.net - Minikube's CRI-O can't resolve Tailscale DNS, but can reach Zot via podman host - Also update CLAUDE.md to spell out kubectl commands (fish abbreviations don't work in scripts) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| Dockerfile | ||
| ingress-tailscale.yaml | ||
| kustomization.yaml | ||
| README.md | ||
| service.yaml | ||
| statefulset.yaml | ||
devpi PyPI Caching Proxy
devpi-server running in Kubernetes, providing:
- PyPI caching proxy at
root/pypi - Private package hosting at
eblume/dev
Setup
1. Deploy via ArgoCD
argocd app sync apps
argocd app sync devpi
2. Initialize devpi (first time only)
After the StatefulSet is running, initialize devpi with a root password:
# Get the root password from 1Password
ROOT_PASSWORD=$(op --vault blumeops item get <item-id> --fields password --reveal)
# Initialize devpi
kubectl -n devpi exec -it devpi-0 -- devpi-init --serverdir /devpi --root-passwd "$ROOT_PASSWORD"
# Restart the pod to pick up the initialized state
kubectl -n devpi rollout restart statefulset devpi
3. Create user and index
# Login to devpi
uvx devpi use https://pypi.tail8d86e.ts.net
uvx devpi login root
# Create user
uvx devpi user -c eblume email=blume.erich@gmail.com
# Create private index inheriting from PyPI
uvx devpi index -c eblume/dev bases=root/pypi
Usage
As pip index (caching proxy)
Configure ~/.config/pip/pip.conf:
[global]
index-url = https://pypi.tail8d86e.ts.net/root/pypi/+simple/
trusted-host = pypi.tail8d86e.ts.net
Upload private packages
# Build and publish
cd ~/code/personal/your-package
uv build
uv publish --publish-url https://pypi.tail8d86e.ts.net/eblume/dev/
URLs
- Web UI: https://pypi.tail8d86e.ts.net
- PyPI cache: https://pypi.tail8d86e.ts.net/root/pypi/+simple/
- Private index: https://pypi.tail8d86e.ts.net/eblume/dev/+simple/