blumeops/argocd/manifests/devpi/README.md
Erich Blume 173a9134d3 P5: Add devpi k8s manifests and ArgoCD app
- Dockerfile for devpi-server + devpi-web image
- StatefulSet with 50Gi PVC for data persistence
- Tailscale Ingress for pypi.tail8d86e.ts.net
- README with setup and usage instructions

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 09:50:15 -08:00

1.5 KiB

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