apiVersion: apps/v1 kind: Deployment metadata: name: authentik-server namespace: authentik spec: replicas: 1 strategy: type: Recreate selector: matchLabels: app: authentik-server template: metadata: labels: app: authentik-server spec: containers: - name: authentik image: ghcr.io/goauthentik/server:2026.5.2 command: ["ak"] args: ["server"] ports: - containerPort: 9000 name: http - containerPort: 9443 name: https envFrom: - secretRef: name: authentik-app-secrets volumeMounts: - name: data mountPath: /data - name: templates mountPath: /templates - name: dshm mountPath: /dev/shm resources: requests: cpu: 100m memory: 256Mi limits: memory: 1Gi volumes: - name: data persistentVolumeClaim: claimName: authentik-server-data - name: templates emptyDir: {} - name: dshm emptyDir: medium: Memory sizeLimit: 512Mi