The great reset, we moved infra into two clusters (sekibanki et seija)
This commit is contained in:
57
apps/seija/pocketid/deployment.yaml
Normal file
57
apps/seija/pocketid/deployment.yaml
Normal file
@@ -0,0 +1,57 @@
|
||||
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.2-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
|
Reference in New Issue
Block a user