blumeops/argocd/manifests/devpi
Erich Blume 3ab67dd222 Fix devpi image path for minikube registry access
- 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>
2026-01-20 11:06:25 -08:00
..
Dockerfile P5: Add devpi k8s manifests and ArgoCD app 2026-01-20 09:50:15 -08:00
ingress-tailscale.yaml P5: Add devpi k8s manifests and ArgoCD app 2026-01-20 09:50:15 -08:00
kustomization.yaml P5: Add devpi k8s manifests and ArgoCD app 2026-01-20 09:50:15 -08:00
README.md P5: Add devpi k8s manifests and ArgoCD app 2026-01-20 09:50:15 -08:00
service.yaml P5: Add devpi k8s manifests and ArgoCD app 2026-01-20 09:50:15 -08:00
statefulset.yaml Fix devpi image path for minikube registry access 2026-01-20 11:06:25 -08:00

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