71 lines
1.6 KiB
YAML
71 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
|