The great reset, we moved infra into two clusters (sekibanki et seija)
This commit is contained in:
7
apps/seija/pocketid/configmap.yaml
Normal file
7
apps/seija/pocketid/configmap.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: pocketid-config
|
||||
data:
|
||||
APP_URL: "https://auth.remilia.ch"
|
||||
TRUST_PROXY: "true"
|
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
|
5
apps/seija/pocketid/kustomization.yaml
Normal file
5
apps/seija/pocketid/kustomization.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
resources:
|
||||
- configmap.yaml
|
||||
- deployment.yaml
|
||||
- pvc.yaml
|
||||
- services.yaml
|
11
apps/seija/pocketid/pvc.yaml
Normal file
11
apps/seija/pocketid/pvc.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: pocketid-pvc
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
||||
storageClassName: hcloud-volumes
|
13
apps/seija/pocketid/services.yaml
Normal file
13
apps/seija/pocketid/services.yaml
Normal 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
|
Reference in New Issue
Block a user