## Summary - Move devpi Dockerfile from argocd/manifests to containers/devpi/ - Add containers for: transmission, teslamate, miniflux, kiwix-serve, kubectl - Update all k8s deployments to use local images (registry.ops.eblu.me/blumeops/*) - All containers use v1.0.0 tag for initial release ## Containers Added | Container | Source | Notes | |-----------|--------|-------| | devpi | python:3.12-slim | Existing, moved to containers/ | | kubectl | alpine + download | For zim-watcher CronJob | | miniflux | Go build from source | v2.2.16 | | kiwix-serve | Download pre-built binary | v3.8.1 | | transmission | alpine + apk install | Simpler than linuxserver image | | teslamate | Elixir build from source | v2.2.0 | ## Deployment and Testing - [ ] Build and tag devpi-v1.0.0 - [ ] Build and tag kubectl-v1.0.0 - [ ] Build and tag miniflux-v1.0.0 - [ ] Build and tag kiwix-serve-v1.0.0 - [ ] Build and tag transmission-v1.0.0 - [ ] Build and tag teslamate-v1.0.0 - [ ] Sync ArgoCD apps and verify services 🤖 Generated with [Claude Code](https://claude.com/claude-code) Reviewed-on: https://forge.ops.eblu.me/eblume/blumeops/pulls/61
99 lines
2.7 KiB
YAML
99 lines
2.7 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: kiwix
|
|
namespace: kiwix
|
|
annotations:
|
|
# Track ZIM file changes for restart detection
|
|
kiwix.blumeops/zim-hash: ""
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: kiwix
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: kiwix
|
|
spec:
|
|
containers:
|
|
# Main kiwix-serve container
|
|
- name: kiwix-serve
|
|
image: registry.ops.eblu.me/blumeops/kiwix-serve:v1.0.0
|
|
args:
|
|
- "/bin/sh"
|
|
- "-c"
|
|
- "kiwix-serve --port=80 /data/complete/*.zim"
|
|
ports:
|
|
- containerPort: 80
|
|
name: http
|
|
volumeMounts:
|
|
- name: torrents
|
|
mountPath: /data
|
|
readOnly: true
|
|
resources:
|
|
requests:
|
|
memory: "256Mi"
|
|
cpu: "100m"
|
|
limits:
|
|
memory: "1Gi"
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 80
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 30
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 80
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
|
|
# Sidecar: Syncs declarative ZIM torrents to transmission
|
|
- name: torrent-sync
|
|
image: registry.ops.eblu.me/blumeops/transmission:v1.0.1
|
|
command: ["/bin/bash", "-c"]
|
|
args:
|
|
- |
|
|
echo "Starting ZIM torrent sync sidecar"
|
|
# Initial sync
|
|
/scripts/sync-zim-torrents.sh || echo "Initial sync failed, will retry"
|
|
# Periodic sync every 30 minutes
|
|
while true; do
|
|
sleep 1800
|
|
/scripts/sync-zim-torrents.sh || echo "Sync failed, will retry"
|
|
done
|
|
env:
|
|
- name: TRANSMISSION_HOST
|
|
value: "transmission.torrent.svc.cluster.local"
|
|
- name: TRANSMISSION_PORT
|
|
value: "9091"
|
|
- name: TORRENT_LIST
|
|
value: "/config/torrents.txt"
|
|
volumeMounts:
|
|
- name: zim-torrents-config
|
|
mountPath: /config/torrents.txt
|
|
subPath: torrents.txt
|
|
- name: sync-script
|
|
mountPath: /scripts
|
|
resources:
|
|
requests:
|
|
memory: "32Mi"
|
|
cpu: "10m"
|
|
limits:
|
|
memory: "64Mi"
|
|
|
|
volumes:
|
|
- name: torrents
|
|
nfs:
|
|
server: sifaka
|
|
path: /volume1/torrents
|
|
- name: zim-torrents-config
|
|
configMap:
|
|
name: kiwix-zim-torrents
|
|
- name: sync-script
|
|
configMap:
|
|
name: zim-torrent-sync-script
|
|
defaultMode: 493 # 0755 in decimal
|