stack.basicstack.de/apps/pocket-id/deployment.yaml
CTO Agent 794cf51d0c Add Pocket ID deployment manifests for Argo CD GitOps
Migrated Pocket ID deployment from manual kubectl to GitOps. All existing resources
will be adopted by Argo CD without recreation, preserving data and configuration.

Key safety measures:
- PVC has Delete=false annotation to prevent data loss
- Existing sealed secret reused for ENCRYPTION_KEY
- TLS certificate managed by cert-manager (not in Git)
- All OIDC clients and user data preserved in existing PVC

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-07-12 14:35:28 +00:00

70 lines
1.6 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: pocket-id
namespace: pocket-id
spec:
replicas: 1
selector:
matchLabels:
app: pocket-id
strategy:
type: Recreate
template:
metadata:
labels:
app: pocket-id
spec:
containers:
- name: pocket-id
image: ghcr.io/pocket-id/pocket-id:v2.9.0
imagePullPolicy: IfNotPresent
ports:
- containerPort: 1411
name: http
protocol: TCP
env:
- name: APP_URL
value: https://auth.basicstack.de
- name: ENCRYPTION_KEY
valueFrom:
secretKeyRef:
key: ENCRYPTION_KEY
name: pocket-id-secrets
- name: TRUST_PROXY
value: "true"
- name: PUID
value: "1000"
- name: PGID
value: "1000"
volumeMounts:
- mountPath: /app/data
name: data
livenessProbe:
exec:
command:
- /app/pocket-id
- healthcheck
failureThreshold: 2
initialDelaySeconds: 10
periodSeconds: 90
timeoutSeconds: 5
readinessProbe:
exec:
command:
- /app/pocket-id
- healthcheck
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 5
resources:
limits:
cpu: 500m
memory: 512Mi
requests:
cpu: 100m
memory: 256Mi
volumes:
- name: data
persistentVolumeClaim:
claimName: pocket-id-data