homelab/apps/auth/services/users/k8s/deployment.yaml
Gonçalo Rodrigues 85930ef40f ci: switch to self-hosted runner with local k3d image import
Removes all ghcr.io and registry dependencies. Workflows now build
images locally, import them into k3d, and deploy with kubectl set image
— all on the self-hosted runner which already has Docker and kubectl.

Also removes the github Terraform provider and ci.tf since no registry
pull secrets or GitHub Actions secrets are needed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-13 14:33:12 +01:00

54 lines
1.2 KiB
YAML

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: users
labels:
app: users
spec:
replicas: 1
selector:
matchLabels:
app: users
template:
metadata:
labels:
app: users
spec:
containers:
- name: users
image: homelab/auth-users:latest
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 8080
envFrom:
- secretRef:
name: mongodb-shared-config
env:
- name: PORT
value: "8080"
- name: LOG_LEVEL
value: "debug"
- name: ADMIN_EMAIL
value: "admin@homelab.local"
- name: ADMIN_PASSWORD
value: "admin123"
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: "jaeger.monitoring.svc:4317"
livenessProbe:
httpGet:
path: /healthz
port: http
readinessProbe:
httpGet:
path: /readyz
port: http
resources:
requests:
cpu: "25m"
memory: "16Mi"
limits:
cpu: "100m"
memory: "64Mi"