healthcheck to use the healthcheck command instead of a HTTP request Signed-off-by: prettysunflower <me@prettysunflower.moe>
58 lines
1.4 KiB
YAML
58 lines
1.4 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: pocketid
|
|
labels:
|
|
app.kubernetes.io/name: pocketid
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: pocketid
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: pocketid
|
|
spec:
|
|
volumes:
|
|
- name: pocketid-data
|
|
persistentVolumeClaim:
|
|
claimName: pocketid-pvc
|
|
containers:
|
|
- name: pocketid
|
|
image: ghcr.io/pocket-id/pocket-id:v1.6.0-distroless
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 1411
|
|
envFrom:
|
|
- configMapRef:
|
|
name: pocketid-config
|
|
volumeMounts:
|
|
- name: pocketid-data
|
|
mountPath: "/app/data"
|
|
securityContext:
|
|
runAsUser: 1000
|
|
runAsGroup: 1000
|
|
runAsNonRoot: true
|
|
allowPrivilegeEscalation: false
|
|
capabilities:
|
|
drop:
|
|
- ALL
|
|
seccompProfile:
|
|
type: RuntimeDefault
|
|
livenessProbe:
|
|
exec:
|
|
command:
|
|
- /app/pocket-id
|
|
- healthcheck
|
|
initialDelaySeconds: 10
|
|
failureThreshold: 3
|
|
periodSeconds: 90
|
|
startupProbe:
|
|
exec:
|
|
command:
|
|
- /app/pocket-id
|
|
- healthcheck
|
|
failureThreshold: 30
|
|
periodSeconds: 10
|