The great reset, we moved infra into two clusters (sekibanki et seija)

This commit is contained in:
2025-07-16 10:39:09 -04:00
parent 68f1108c2d
commit 1df5459f70
145 changed files with 2431 additions and 576 deletions

View File

@@ -0,0 +1,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: pocketid-config
data:
APP_URL: "https://auth.remilia.ch"
TRUST_PROXY: "true"

View 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

View File

@@ -0,0 +1,5 @@
resources:
- configmap.yaml
- deployment.yaml
- pvc.yaml
- services.yaml

View File

@@ -0,0 +1,11 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: pocketid-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: hcloud-volumes

View File

@@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: pocketid
spec:
type: ClusterIP
selector:
app.kubernetes.io/name: pocketid
ports:
- protocol: TCP
port: 80
targetPort: 1411
name: http